[Python-checkins] CVS: python/dist/src/Python pythonrun.c,2.133.2.1,2.133.2.2

Anthony Baxter anthonybaxter@users.sourceforge.net
Thu, 20 Dec 2001 19:46:14 -0800


Update of /cvsroot/python/python/dist/src/Python
In directory usw-pr-cvs1:/tmp/cvs-serv27773

Modified Files:
      Tag: release21-maint
	pythonrun.c 
Log Message:
backport 2.153:
Missing DECREFs when exception is raised in sys.excepthook.


Index: pythonrun.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/pythonrun.c,v
retrieving revision 2.133.2.1
retrieving revision 2.133.2.2
diff -C2 -d -r2.133.2.1 -r2.133.2.2
*** pythonrun.c	2001/12/21 03:29:12	2.133.2.1
--- pythonrun.c	2001/12/21 03:46:12	2.133.2.2
***************
*** 867,870 ****
--- 867,873 ----
  			PySys_WriteStderr("\nOriginal exception was:\n");
  			PyErr_Display(exception, v, tb);
+ 			Py_XDECREF(exception2);
+ 			Py_XDECREF(v2);
+ 			Py_XDECREF(tb2);
  		}
  		Py_XDECREF(result);