https://github.com/python/cpython/commit/6b490d57854a61cc67d4da9f33d7e79d86f8373d
commit: 6b490d57854a61cc67d4da9f33d7e79d86f8373d
branch: 3.13
author: Jelle Zijlstra <[email protected]>
committer: JelleZijlstra <[email protected]>
date: 2026-08-29T13:27:54-07:00
summary:
[3.13] gh-156466: Fix additional compiler scope cleanup errors (GH-156547)
(#156582)
files:
M Python/compile.c
diff --git a/Python/compile.c b/Python/compile.c
index fa03bbd1afa963..9151c29a9c1862 100644
--- a/Python/compile.c
+++ b/Python/compile.c
@@ -7933,6 +7933,9 @@ _PyCompile_CodeGen(PyObject *ast, PyObject *filename,
PyCompilerFlags *pflags,
Py_XDECREF(consts_list);
Py_XDECREF(metadata);
compiler_exit_scope(c);
+ if (c->u != NULL) {
+ compiler_exit_scope(c);
+ }
compiler_free(c);
_PyArena_Free(arena);
return res;
_______________________________________________
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]