summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Objects/descrobject.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Objects/descrobject.c b/Objects/descrobject.c
index 3cfdb97..4b599ec 100644
--- a/Objects/descrobject.c
+++ b/Objects/descrobject.c
@@ -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;