Skip to content

Commit c85e352

Browse files
authored
gh-119431: fix refleak in test_monitoring (#119444)
1 parent e3f5a44 commit c85e352

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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)