[Python-checkins] CVS: python/dist/src/Python pythonrun.c,2.128,2.129

Guido van Rossum gvanrossum@users.sourceforge.net
Thu, 22 Mar 2001 20:01:09 -0800


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

Modified Files:
	pythonrun.c 
Log Message:
Fix memory leak with SyntaxError.  (The DECREF was originally hidden
inside a piece of code that was deemed reduntant; the DECREF was
unfortunately *not* redundant!)


Index: pythonrun.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Python/pythonrun.c,v
retrieving revision 2.128
retrieving revision 2.129
diff -C2 -r2.128 -r2.129
*** pythonrun.c	2001/03/23 02:46:52	2.128
--- pythonrun.c	2001/03/23 04:01:07	2.129
***************
*** 1202,1205 ****
--- 1202,1206 ----
  	}
  	w = Py_BuildValue("(sO)", msg, v);
+ 	Py_XDECREF(v);
  	PyErr_SetObject(errtype, w);
  	Py_XDECREF(w);