From: Neal Norwitz Date: Mon, 31 Dec 2007 23:48:47 +0000 (+0000) Subject: Fix refleak X-Git-Tag: v2.6a1~797 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=59a65facf2f12c34c3e37b6aa5db8df6c0ec4329;p=python Fix refleak --- diff --git a/Objects/descrobject.c b/Objects/descrobject.c index 3cfdb97348..4b599ec2c8 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;