summaryrefslogtreecommitdiffstats
path: root/Programs
diff options
context:
space:
mode:
Diffstat (limited to 'Programs')
-rw-r--r--Programs/_freeze_module.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Programs/_freeze_module.c b/Programs/_freeze_module.c
index d6d737d..9e2169f 100644
--- a/Programs/_freeze_module.c
+++ b/Programs/_freeze_module.c
@@ -194,6 +194,7 @@ write_frozen(const char *outpath, const char *inpath, const char *name,
if (ferror(outfile)) {
fprintf(stderr, "error when writing to '%s'\n", outpath);
+ fclose(outfile);
return -1;
}
fclose(outfile);