[Python-checkins] python/dist/src/Objects listobject.c,2.210,2.211
arigo at users.sourceforge.net
arigo at users.sourceforge.net
Thu Jul 29 12:56:57 CEST 2004
Update of /cvsroot/python/python/dist/src/Objects
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv12444
Modified Files:
listobject.c
Log Message:
Minor memory leak.
Index: listobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/listobject.c,v
retrieving revision 2.210
retrieving revision 2.211
diff -C2 -d -r2.210 -r2.211
*** listobject.c 29 Jul 2004 04:07:15 -0000 2.210
--- listobject.c 29 Jul 2004 10:56:55 -0000 2.211
***************
*** 537,540 ****
--- 537,541 ----
if (recycle == NULL) {
PyErr_NoMemory();
+ Py_XDECREF(v_as_SF);
return -1;
}
***************
*** 557,560 ****
--- 558,562 ----
if (recycle != NULL)
PyMem_DEL(recycle);
+ Py_XDECREF(v_as_SF);
return -1;
}
More information about the Python-checkins
mailing list