8000 gh-118023: Fix reference leak (#118025) · python/cpython@cd7cf15 · GitHub
[go: up one dir, main page]

Skip to content

Commit cd7cf15

Browse files
authored
gh-118023: Fix reference leak (#118025)
1 parent b848b94 commit cd7cf15

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Python/instruction_sequence.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,8 @@ _PyInstructionSequence_AddNested(instr_sequence *seq, instr_sequence *nested)
158158

159159
void
160160
PyInstructionSequence_Fini(instr_sequence *seq) {
161+
Py_XDECREF(seq->s_nested);
162+
161163
PyMem_Free(seq->s_labelmap);
162164
seq->s_labelmap = NULL;
163165

0 commit comments

Comments
 (0)
0