[Python-checkins] python/dist/src/Objects typeobject.c,2.183,2.184
gvanrossum@users.sourceforge.net
gvanrossum@users.sourceforge.net
Fri, 18 Oct 2002 06:51:51 -0700
Update of /cvsroot/python/python/dist/src/Objects
In directory usw-pr-cvs1:/tmp/cvs-serv11911
Modified Files:
typeobject.c
Log Message:
Sigh. That wasn't a memory leak, that was Guido committing before
running tests. Withdraw 2.183 and its backport.
Index: typeobject.c
===================================================================
RCS file: /cvsroot/python/python/dist/src/Objects/typeobject.c,v
retrieving revision 2.183
retrieving revision 2.184
diff -C2 -d -r2.183 -r2.184
*** typeobject.c 18 Oct 2002 13:41:47 -0000 2.183
--- typeobject.c 18 Oct 2002 13:51:49 -0000 2.184
***************
*** 2469,2477 ****
ref = PyList_GET_ITEM(list, i);
assert(PyWeakref_CheckRef(ref));
! if (PyWeakref_GET_OBJECT(ref) == Py_None) {
! i = PyList_SetItem(list, i, new);
! Py_DECREF(new);
! return i;
! }
}
i = PyList_Append(list, new);
--- 2469,2474 ----
ref = PyList_GET_ITEM(list, i);
assert(PyWeakref_CheckRef(ref));
! if (PyWeakref_GET_OBJECT(ref) == Py_None)
! return PyList_SetItem(list, i, new);
}
i = PyList_Append(list, new);