Kaydet (Commit) 0702858d authored tarafından Jeremy Hylton's avatar Jeremy Hylton

Missing DECREFs when exception is raised in sys.excepthook.

Bug fix candidate for 2.1 branch.

(I imagine the other recent leak patches are bug fix candidates, too,
but I forgot to mark mine as such.)
üst 038215ab
...@@ -895,6 +895,9 @@ PyErr_PrintEx(int set_sys_last_vars) ...@@ -895,6 +895,9 @@ PyErr_PrintEx(int set_sys_last_vars)
PyErr_Display(exception2, v2, tb2); PyErr_Display(exception2, v2, tb2);
PySys_WriteStderr("\nOriginal exception was:\n"); PySys_WriteStderr("\nOriginal exception was:\n");
PyErr_Display(exception, v, tb); PyErr_Display(exception, v, tb);
Py_XDECREF(exception2);
Py_XDECREF(v2);
Py_XDECREF(tb2);
} }
Py_XDECREF(result); Py_XDECREF(result);
Py_XDECREF(args); Py_XDECREF(args);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment