https://github.com/python/cpython/commit/c85e3526736d1cf8226686fdf4f5117e105a7b13
commit: c85e3526736d1cf8226686fdf4f5117e105a7b13
branch: main
author: Irit Katriel <[email protected]>
committer: iritkatriel <[email protected]>
date: 2024-05-23T10:21:53+01:00
summary:
gh-119431: fix refleak in test_monitoring (#119444)
files:
M Python/instrumentation.c
diff --git a/Python/instrumentation.c b/Python/instrumentation.c
index 3d78214738e66b..9095fb981b7981 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);
}
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]