Mercurial > cpython-lru_cache-weakref
comparison Python/pythonrun.c @ 21284:43b8a962a32a legacy-trunk
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.)
| author | Jeremy Hylton <jeremy@alum.mit.edu> |
|---|---|
| date | Fri, 07 Dec 2001 15:35:35 +0000 |
| parents | 45e1177424e1 |
| children | c64fc56f6072 |
comparison
equal
deleted
inserted
replaced
| 21283:d4907cdcc299 | 21284:43b8a962a32a |
|---|---|
| 893 fflush(stdout); | 893 fflush(stdout); |
| 894 PySys_WriteStderr("Error in sys.excepthook:\n"); | 894 PySys_WriteStderr("Error in sys.excepthook:\n"); |
| 895 PyErr_Display(exception2, v2, tb2); | 895 PyErr_Display(exception2, v2, tb2); |
| 896 PySys_WriteStderr("\nOriginal exception was:\n"); | 896 PySys_WriteStderr("\nOriginal exception was:\n"); |
| 897 PyErr_Display(exception, v, tb); | 897 PyErr_Display(exception, v, tb); |
| 898 Py_XDECREF(exception2); | |
| 899 Py_XDECREF(v2); | |
| 900 Py_XDECREF(tb2); | |
| 898 } | 901 } |
| 899 Py_XDECREF(result); | 902 Py_XDECREF(result); |
| 900 Py_XDECREF(args); | 903 Py_XDECREF(args); |
| 901 } else { | 904 } else { |
| 902 PySys_WriteStderr("sys.excepthook is missing\n"); | 905 PySys_WriteStderr("sys.excepthook is missing\n"); |
