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: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=59a65facf2f12c34c3e37b6aa5db8df6c0ec4329;p=thirdparty%2FPython%2Fcpython.git Fix refleak --- diff --git a/Objects/descrobject.c b/Objects/descrobject.c index 3cfdb973489a..4b599ec2c88f 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;