Skip to content

Commit 2fccbe5

Browse files
committed
Fix refleak introduced in pythonGH-134788
1 parent d6e4786 commit 2fccbe5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Python/compile.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5811,7 +5811,9 @@ compiler_comprehension(struct compiler *c, expr_ty e, int type,
58115811

58125812
outermost = (comprehension_ty) asdl_seq_GET(generators, 0);
58135813
if (is_inlined) {
5814-
VISIT(c, expr, outermost->iter);
5814+
if (compiler_visit_expr(c, outermost->iter) < 0) {
5815+
goto error;
5816+
}
58155817
if (push_inlined_comprehension_state(c, loc, entry, &inline_state)) {
58165818
goto error;
58175819
}

0 commit comments

Comments
 (0)