summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorNeal Norwitz <nnorwitz@gmail.com>2007-12-31 23:48:47 (GMT)
committerNeal Norwitz <nnorwitz@gmail.com>2007-12-31 23:48:47 (GMT)
commit59a65facf2f12c34c3e37b6aa5db8df6c0ec4329 (patch)
treeb653e51ee9d019de2ca739a5542d0a0bff602e89 /Objects
parent44ac35519be2249ae1f76d32c98410cdbb2ff5e5 (diff)
downloadcpython-59a65facf2f12c34c3e37b6aa5db8df6c0ec4329.zip
cpython-59a65facf2f12c34c3e37b6aa5db8df6c0ec4329.tar.gz
cpython-59a65facf2f12c34c3e37b6aa5db8df6c0ec4329.tar.bz2
Fix refleak
Diffstat (limited to 'Objects')
-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;