Commit 3930bc35 authored by Guido van Rossum's avatar Guido van Rossum

Sigh. That wasn't a memory leak, that was Guido committing before

running tests.  Withdraw 2.183 and its backport.
parent 72297bb7
......@@ -2468,11 +2468,8 @@ add_subclass(PyTypeObject *base, PyTypeObject *type)
while (--i >= 0) {
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;
}
if (PyWeakref_GET_OBJECT(ref) == Py_None)
return PyList_SetItem(list, i, new);
}
i = PyList_Append(list, new);
Py_DECREF(new);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment