pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/python/cpython/commit/4255a9fbc30bba44645182d19ebd51eb9a2e16a5

="stylesheet" href="https://github.githubassets.com/assets/global-d18f184ea1a06a2c.css" /> gh-98872: Fix a possible resource leak in Python 3.11.0 (GH-99047) · python/cpython@4255a9f · GitHub
Skip to content

Commit 4255a9f

Browse files
gh-98872: Fix a possible resource leak in Python 3.11.0 (GH-99047)
Issue: GH-98872 (cherry picked from commit 4e5f2db) Co-authored-by: SQLPATCH <95843853+SQLPATCH@users.noreply.github.com> Automerge-Triggered-By: GH:kumaraditya303
1 parent d74117a commit 4255a9f

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Fix a possible fd leak in ``Programs/_freeze_module.c`` introduced in Python 3.11.

Programs/_freeze_module.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,7 @@ write_frozen(const char *outpath, const char *inpath, const char *name,
194194

195195
if (ferror(outfile)) {
196196
fprintf(stderr, "error when writing to '%s'\n", outpath);
197+
fclose(outfile);
197198
return -1;
198199
}
199200
fclose(outfile);

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy