[Python-checkins] python/dist/src/Objects typeobject.c,2.156,2.157

rhettinger@users.sourceforge.net rhettinger@users.sourceforge.net
Mon, 24 Jun 2002 06:08:18 -0700


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

Modified Files:
	typeobject.c 
Log Message:
Fix SF bug 572567: Memory leak in object comparison.


Index: typeobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/typeobject.c,v
retrieving revision 2.156
retrieving revision 2.157
diff -C2 -d -r2.156 -r2.157
*** typeobject.c	20 Jun 2002 22:23:14 -0000	2.156
--- typeobject.c	24 Jun 2002 13:08:14 -0000	2.157
***************
*** 3287,3290 ****
--- 3287,3291 ----
  			Py_DECREF(args);
  		}
+ 		Py_DECREF(func);
  		if (res != Py_NotImplemented) {
  			if (res == NULL)