gh-127604: Fix refleak in faulthandler_dump_c_stack_py() (#132840)

This commit is contained in:
Victor Stinner 2025-04-23 16:29:31 +02:00 committed by GitHub
parent dc3e9638c2
commit 1aaca7ab48
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -298,6 +298,7 @@ faulthandler_dump_c_stack_py(PyObject *self,
} }
_Py_DumpStack(fd); _Py_DumpStack(fd);
Py_XDECREF(file);
if (PyErr_CheckSignals()) { if (PyErr_CheckSignals()) {
return NULL; return NULL;