Skip to content

Commit

Permalink
fix refleak
Browse files Browse the repository at this point in the history
  • Loading branch information
carljm committed May 5, 2023
1 parent 46c7a4f commit fb9f89e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Python/compile.c
Original file line number Diff line number Diff line change
Expand Up @@ -5133,8 +5133,10 @@ pop_inlined_comprehension_state(struct compiler *c, location loc,
// we set to False instead of clearing, so we can track which names
// were temporarily fast-locals and should use CO_FAST_HIDDEN
if (PyDict_SetItem(c->u->u_metadata.u_fasthidden, k, Py_False)) {
Py_DECREF(k);
return ERROR;
}
Py_DECREF(k);
}
Py_CLEAR(state.fast_hidden);
}
Expand Down

0 comments on commit fb9f89e

Please sign in to comment.