summaryrefslogtreecommitdiffstats
path: root/Programs
diff options
context:
space:
mode:
authorSQLPATCH <95843853+SQLPATCH@users.noreply.github.com>2022-11-24 09:04:19 (GMT)
committerGitHub <noreply@github.com>2022-11-24 09:04:19 (GMT)
commit4e5f2db6f228d45a655cf22fd587792d56116145 (patch)
tree5bb56d0b96ef2b72191dd176efe3ca23e4c1923a /Programs
parentb4d54a332ed593c9fcd0da25684c622a251d03ce (diff)
downloadcpython-4e5f2db6f228d45a655cf22fd587792d56116145.zip
cpython-4e5f2db6f228d45a655cf22fd587792d56116145.tar.gz
cpython-4e5f2db6f228d45a655cf22fd587792d56116145.tar.bz2
gh-98872: Fix a possible resource leak in Python 3.11.0 (GH-99047)
Issue: #98872 Automerge-Triggered-By: GH:kumaraditya303
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);