Fix refleak

This commit is contained in:
Neal Norwitz 2007-12-31 23:48:47 +00:00
parent 44ac35519b
commit 59a65facf2
1 changed files with 1 additions and 0 deletions

View File

@ -1237,6 +1237,7 @@ property_copy(PyObject *old, PyObject *get, PyObject *set, PyObject *del,
}
new = PyObject_CallFunction(type, "OOOO", get, set, del, doc);
Py_DECREF(type);
if (new == NULL)
return NULL;
pnew = (propertyobject *)new;