[3.13] GH-128161: Fix refleak introduced in GH-134788 (GH-134799)

This commit is contained in:
Mark Shannon 2025-05-27 18:14:56 +01:00 committed by GitHub
parent d6e4786937
commit c6af7f4bf7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;
}