python/dist/src/Objects classobject.c, 2.170, 2.171
Update of /cvsroot/python/python/dist/src/Objects In directory sc8-pr-cvs1:/tmp/cvs-serv17931 Modified Files: 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.171 diff -C2 -d -r2.170 -r2.171 *** classobject.c 9 Apr 2003 19:35:08 -0000 2.170 --- classobject.c 16 Sep 2003 07:11:46 -0000 2.171 *************** *** 954,957 **** --- 954,958 ---- } } + Py_XDECREF(func); PyErr_SetString(PyExc_TypeError, "unhashable instance"); return -1;
participants (1)
-
rhettingerīŧ users.sourceforge.net