summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Python/instrumentation.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Python/instrumentation.c b/Python/instrumentation.c
index 3d78214..9095fb9 100644
--- a/Python/instrumentation.c
+++ b/Python/instrumentation.c
@@ -2724,5 +2724,6 @@ _PyMonitoring_FireStopIterationEvent(PyMonitoringState *state, PyObject *codelik
}
PyObject *args[4] = { NULL, NULL, NULL, exc };
int err = capi_call_instrumentation(state, codelike, offset, args, 3, event);
+ Py_DECREF(exc);
return exception_event_teardown(err, NULL);
}