Skip to content

Commit e8d5805

Browse files
committed
pythongh-127604: Fix refleak in faulthandler_dump_c_stack_py()
1 parent dc3e963 commit e8d5805

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Modules/faulthandler.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -298,6 +298,7 @@ faulthandler_dump_c_stack_py(PyObject *self,
298298
}
299299

300300
_Py_DumpStack(fd);
301+
Py_XDECREF(file);
301302

302303
if (PyErr_CheckSignals()) {
303304
return NULL;

0 commit comments

Comments
 (0)