mirror of
https://github.com/python/cpython.git
synced 2026-01-26 21:03:34 +00:00
gh-98872: Fix a possible resource leak in Python 3.11.0 (GH-99047)
Issue: GH-98872 (cherry picked from commit 4e5f2db6f228d45a655cf22fd587792d56116145) Co-authored-by: SQLPATCH <95843853+SQLPATCH@users.noreply.github.com> Automerge-Triggered-By: GH:kumaraditya303
This commit is contained in:
parent
d74117acc1
commit
4255a9fbc3
@ -0,0 +1 @@
|
||||
Fix a possible fd leak in ``Programs/_freeze_module.c`` introduced in Python 3.11.
|
||||
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user