Skip to content

Commit 39264ed

Browse files
[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 a74280e) Co-authored-by: sobolevn <mail@sobolevn.me>
1 parent 918b82a commit 39264ed

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
@@ -7872,7 +7872,7 @@ _PyCompile_CodeGen(PyObject *ast, PyObject *filename, PyCompilerFlags *pflags,
78727872

78737873
metadata = PyDict_New();
78747874
if (metadata == NULL) {
7875-
return NULL;
7875+
goto finally;
78767876
}
78777877

78787878
if (compiler_enter_anonymous_scope(c, mod) < 0) {

0 commit comments

Comments
 (0)