mirror of
https://github.com/python/cpython.git
synced 2026-05-06 20:51:17 -04:00
gh-145376: Fix various reference leaks (GH-145377)
This commit is contained in:
@@ -1145,6 +1145,7 @@ _PyErr_Display(PyObject *file, PyObject *unused, PyObject *value, PyObject *tb)
|
||||
"traceback",
|
||||
"_print_exception_bltin");
|
||||
if (print_exception_fn == NULL || !PyCallable_Check(print_exception_fn)) {
|
||||
Py_XDECREF(print_exception_fn);
|
||||
goto fallback;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user