commit 750b8c45de3d378b12ed46450a8a3192629d8248
parent fd5159b020732f736e032e46e90e2ca93a0178f3
Author: Vincent Forest <vincent.forest@meso-star.com>
Date: Wed, 4 Feb 2026 16:24:53 +0100
Fix both a memory leak and invalid memory access
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/sln_mixture.c b/src/sln_mixture.c
@@ -408,7 +408,7 @@ load_mixture
if(res != RES_OK) goto error;
exit:
- if(!fp && fp != args->file) fclose(args->file);
+ if(fp && fp != args->file) fclose(fp);
return res;
error:
goto exit;