https://github.com/python/cpython/commit/39264edce73c443b01a89d7f07ace764eb600a84 commit: 39264edce73c443b01a89d7f07ace764eb600a84 branch: 3.13 author: Miss Islington (bot) <[email protected]> committer: sobolevn <[email protected]> date: 2026-07-07T17:03:10Z summary:
[3.13] gh-153252: Fix error handling in `_PyCompile_CodeGen` (GH-153253) (#153283) gh-153252: Fix error handling in `_PyCompile_CodeGen` (GH-153253) (cherry picked from commit a74280e6696125acb7628facc577d0f975c4d69e) Co-authored-by: sobolevn <[email protected]> files: M Python/compile.c diff --git a/Python/compile.c b/Python/compile.c index a2563a434232fca..fa03bbd1afa9630 100644 --- a/Python/compile.c +++ b/Python/compile.c @@ -7872,7 +7872,7 @@ _PyCompile_CodeGen(PyObject *ast, PyObject *filename, PyCompilerFlags *pflags, metadata = PyDict_New(); if (metadata == NULL) { - return NULL; + goto finally; } if (compiler_enter_anonymous_scope(c, mod) < 0) { _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3//lists/python-checkins.python.org Member address: [email protected]
