[Python-checkins] CVS: python/dist/src/Python pythonrun.c,2.152,2.153
Jeremy Hylton
jhylton@users.sourceforge.net
Fri, 07 Dec 2001 07:35:38 -0800
Update of /cvsroot/python/python/dist/src/Python
In directory usw-pr-cvs1:/tmp/cvs-serv18501
Modified Files:
pythonrun.c
Log Message:
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.)
Index: pythonrun.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/pythonrun.c,v
retrieving revision 2.152
retrieving revision 2.153
diff -C2 -d -r2.152 -r2.153
*** pythonrun.c 2001/12/06 06:23:26 2.152
--- pythonrun.c 2001/12/07 15:35:35 2.153
***************
*** 896,899 ****
--- 896,902 ----
PySys_WriteStderr("\nOriginal exception was:\n");
PyErr_Display(exception, v, tb);
+ Py_XDECREF(exception2);
+ Py_XDECREF(v2);
+ Py_XDECREF(tb2);
}
Py_XDECREF(result);