[Python-checkins] python/dist/src/Objects classobject.c, 2.170, 2.170.10.1

rhettinger at users.sourceforge.net rhettinger at users.sourceforge.net
Tue Sep 16 03:13:58 EDT 2003


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

Modified Files:
      Tag: release23-maint
	classobject.c 
Log Message:
Fix leak in classobject.c.  The leak surfaced on the error exit when
hashing a class that does not define __hash__ but does define a
comparison.



Index: classobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/classobject.c,v
retrieving revision 2.170
retrieving revision 2.170.10.1
diff -C2 -d -r2.170 -r2.170.10.1
*** classobject.c	9 Apr 2003 19:35:08 -0000	2.170
--- classobject.c	16 Sep 2003 07:13:56 -0000	2.170.10.1
***************
*** 954,957 ****
--- 954,958 ----
  			}
  		}
+ 		Py_XDECREF(func);
  		PyErr_SetString(PyExc_TypeError, "unhashable instance");
  		return -1;





More information about the Python-checkins mailing list