mirror of https://github.com/python/cpython
Fix refleak
This commit is contained in:
parent
44ac35519b
commit
59a65facf2
|
@ -1237,6 +1237,7 @@ property_copy(PyObject *old, PyObject *get, PyObject *set, PyObject *del,
|
||||||
}
|
}
|
||||||
|
|
||||||
new = PyObject_CallFunction(type, "OOOO", get, set, del, doc);
|
new = PyObject_CallFunction(type, "OOOO", get, set, del, doc);
|
||||||
|
Py_DECREF(type);
|
||||||
if (new == NULL)
|
if (new == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
pnew = (propertyobject *)new;
|
pnew = (propertyobject *)new;
|
||||||
|
|
Loading…
Reference in New Issue