Skip to content

Commit c30c8a4

Browse files
[3.15] gh-153252: Fix error handling in _PyCompile_CodeGen (GH-153253) (#153281)
gh-153252: Fix error handling in `_PyCompile_CodeGen` (GH-153253) (cherry picked from commit a74280e) Co-authored-by: sobolevn <mail@sobolevn.me>
1 parent 557e994 commit c30c8a4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Python/compile.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1689,7 +1689,7 @@ _PyCompile_CodeGen(PyObject *ast, PyObject *filename, PyCompilerFlags *pflags,
16891689

16901690
metadata = PyDict_New();
16911691
if (metadata == NULL) {
1692-
return NULL;
1692+
goto finally;
16931693
}
16941694

16951695
if (compiler_codegen(c, mod) < 0) {

0 commit comments

Comments
 (0)