https://github.com/python/cpython/commit/1aaca7ab483e347f7dc412c9b78b794bd7f94043
commit: 1aaca7ab483e347f7dc412c9b78b794bd7f94043
branch: main
author: Victor Stinner <[email protected]>
committer: vstinner <[email protected]>
date: 2025-04-23T14:29:31Z
summary:
gh-127604: Fix refleak in faulthandler_dump_c_stack_py() (#132840)
files:
M Modules/faulthandler.c
diff --git a/Modules/faulthandler.c b/Modules/faulthandler.c
index 563ffd9fbbdadb..d49ce794d88674 100644
--- a/Modules/faulthandler.c
+++ b/Modules/faulthandler.c
@@ -298,6 +298,7 @@ faulthandler_dump_c_stack_py(PyObject *self,
}
_Py_DumpStack(fd);
+ Py_XDECREF(file);
if (PyErr_CheckSignals()) {
return NULL;
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]