mirror of
https://github.com/python/cpython.git
synced 2025-07-07 19:35:27 +00:00
gh-118023: Fix reference leak (#118025)
This commit is contained in:
parent
b848b944bb
commit
cd7cf15588
1 changed files with 2 additions and 0 deletions
|
@ -158,6 +158,8 @@ _PyInstructionSequence_AddNested(instr_sequence *seq, instr_sequence *nested)
|
|||
|
||||
void
|
||||
PyInstructionSequence_Fini(instr_sequence *seq) {
|
||||
Py_XDECREF(seq->s_nested);
|
||||
|
||||
PyMem_Free(seq->s_labelmap);
|
||||
seq->s_labelmap = NULL;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue