mirror of https://github.com/python/cpython
Sigh. That wasn't a memory leak, that was Guido committing before
running tests. Withdraw 2.183 and its backport.
This commit is contained in:
parent
72297bb71e
commit
3930bc35d0
|
@ -2468,11 +2468,8 @@ add_subclass(PyTypeObject *base, PyTypeObject *type)
|
||||||
while (--i >= 0) {
|
while (--i >= 0) {
|
||||||
ref = PyList_GET_ITEM(list, i);
|
ref = PyList_GET_ITEM(list, i);
|
||||||
assert(PyWeakref_CheckRef(ref));
|
assert(PyWeakref_CheckRef(ref));
|
||||||
if (PyWeakref_GET_OBJECT(ref) == Py_None) {
|
if (PyWeakref_GET_OBJECT(ref) == Py_None)
|
||||||
i = PyList_SetItem(list, i, new);
|
return PyList_SetItem(list, i, new);
|
||||||
Py_DECREF(new);
|
|
||||||
return i;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
i = PyList_Append(list, new);
|
i = PyList_Append(list, new);
|
||||||
Py_DECREF(new);
|
Py_DECREF(new);
|
||||||
|
|
Loading…
Reference in New Issue