[Python-checkins] python/dist/src/Objects typeobject.c,2.163,2.164
nnorwitz@users.sourceforge.net
nnorwitz@users.sourceforge.net
Mon, 29 Jul 2002 17:42:17 -0700
Update of /cvsroot/python/python/dist/src/Objects
In directory usw-pr-cvs1:/tmp/cvs-serv23427/Objects
Modified Files:
typeobject.c
Log Message:
SF patch #587889, fix memory leak of tp_doc
Index: typeobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/typeobject.c,v
retrieving revision 2.163
retrieving revision 2.164
diff -C2 -d -r2.163 -r2.164
*** typeobject.c 25 Jul 2002 16:43:29 -0000 2.163
--- typeobject.c 30 Jul 2002 00:42:06 -0000 2.164
***************
*** 1463,1466 ****
--- 1463,1467 ----
Py_XDECREF(type->tp_cache);
Py_XDECREF(type->tp_subclasses);
+ PyObject_Free(type->tp_doc);
Py_XDECREF(et->name);
Py_XDECREF(et->slots);