Skip to content

Commit 8a14445

Browse files
authored
Fix refleak (see python#119444)
1 parent 06943e2 commit 8a14445

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎Python/instrumentation.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2724,5 +2724,6 @@ _PyMonitoring_FireStopIterationEvent(PyMonitoringState *state, PyObject *codelik
27242724
}
27252725
PyObject *args[4] = { NULL, NULL, NULL, exc };
27262726
int err = capi_call_instrumentation(state, codelike, offset, args, 3, event);
2727+
Py_DECREF(exc);
27272728
return exception_event_teardown(err, NULL);
27282729
}

0 commit comments

Comments
 (0)