mirror of
https://github.com/python/cpython.git
synced 2026-06-27 13:20:40 -04:00
[3.13] gh-145376: Fix various reference leaks (GH-145377) (#148661)
(cherry picked from commit bd13cc09fa)
Co-authored-by: Jelle Zijlstra <jelle.zijlstra@gmail.com>
This commit is contained in:
@@ -1150,6 +1150,7 @@ _PyErr_Display(PyObject *file, PyObject *unused, PyObject *value, PyObject *tb)
|
||||
|
||||
if (print_exception_fn == NULL || !PyCallable_Check(print_exception_fn)) {
|
||||
Py_DECREF(traceback_module);
|
||||
Py_XDECREF(print_exception_fn);
|
||||
goto fallback;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user