summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorIrit Katriel <1055913+iritkatriel@users.noreply.github.com>2024-05-23 09:21:53 (GMT)
committerGitHub <noreply@github.com>2024-05-23 09:21:53 (GMT)
commitc85e3526736d1cf8226686fdf4f5117e105a7b13 (patch)
tree94699d5c0fccb83f10924362e328738f9a9020a7 /Python
parente3f5a4455346747fe98f6aeefc74b46048d09bda (diff)
downloadcpython-c85e3526736d1cf8226686fdf4f5117e105a7b13.zip
cpython-c85e3526736d1cf8226686fdf4f5117e105a7b13.tar.gz
cpython-c85e3526736d1cf8226686fdf4f5117e105a7b13.tar.bz2
gh-119431: fix refleak in test_monitoring (#119444)
Diffstat (limited to 'Python')
-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);
}