https://github.com/python/cpython/commit/c6af7f4bf7edc9924efbaa7352c4eb636258d072
commit: c6af7f4bf7edc9924efbaa7352c4eb636258d072
branch: 3.13
author: Mark Shannon <[email protected]>
committer: markshannon <[email protected]>
date: 2025-05-27T18:14:56+01:00
summary:
[3.13] GH-128161: Fix refleak introduced in GH-134788 (GH-134799)
files:
M Python/compile.c
diff --git a/Python/compile.c b/Python/compile.c
index dba10237a2a735..e9506d6d978d89 100644
--- a/Python/compile.c
+++ b/Python/compile.c
@@ -5811,7 +5811,9 @@ compiler_comprehension(struct compiler *c, expr_ty e, int
type,
outermost = (comprehension_ty) asdl_seq_GET(generators, 0);
if (is_inlined) {
- VISIT(c, expr, outermost->iter);
+ if (compiler_visit_expr(c, outermost->iter) < 0) {
+ goto error;
+ }
if (push_inlined_comprehension_state(c, loc, entry, &inline_state)) {
goto error;
}
_______________________________________________
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]