Skip to content

Commit e36e373

Browse files
iritkatrielestyxx
authored andcommitted
pythongh-119431: fix refleak in test_monitoring (python#119444)
1 parent 73aa338 commit e36e373

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)