[Python-checkins] python/dist/src/Objects typeobject.c,2.126.4.26,2.126.4.27
gvanrossum@users.sourceforge.net
gvanrossum@users.sourceforge.net
Fri, 18 Oct 2002 06:52:45 -0700
Update of /cvsroot/python/python/dist/src/Objects
In directory usw-pr-cvs1:/tmp/cvs-serv12479
Modified Files:
Tag: release22-maint
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.126.4.26
retrieving revision 2.126.4.27
diff -C2 -d -r2.126.4.26 -r2.126.4.27
*** typeobject.c 18 Oct 2002 13:42:21 -0000 2.126.4.26
--- typeobject.c 18 Oct 2002 13:52:42 -0000 2.126.4.27
***************
*** 2250,2258 ****
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);
--- 2250,2255 ----
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);