Skip to content

Commit 1aaca7a

Browse files
authored
gh-127604: Fix refleak in faulthandler_dump_c_stack_py() (#132840)
1 parent dc3e963 commit 1aaca7a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Modules/faulthandler.c

+1
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)