Skip to content

Commit a74280e

Browse files
authored
gh-153252: Fix error handling in _PyCompile_CodeGen (#153253)
1 parent ce96dd6 commit a74280e

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)