mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
gh-127604: Fix refleak in faulthandler_dump_c_stack_py() (#132840)
This commit is contained in:
parent
dc3e9638c2
commit
1aaca7ab48
1 changed files with 1 additions and 0 deletions
|
@ -298,6 +298,7 @@ faulthandler_dump_c_stack_py(PyObject *self,
|
|||
}
|
||||
|
||||
_Py_DumpStack(fd);
|
||||
Py_XDECREF(file);
|
||||
|
||||
if (PyErr_CheckSignals()) {
|
||||
return NULL;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue