gh-118023: Fix reference leak (#118025)

This commit is contained in:
Kirill Podoprigora 2024-04-18 10:32:32 +03:00 committed by GitHub
parent b848b944bb
commit cd7cf15588
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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