]> granicus.if.org Git - python/commitdiff
Fix refleak
authorNeal Norwitz <nnorwitz@gmail.com>
Mon, 31 Dec 2007 23:48:47 +0000 (23:48 +0000)
committerNeal Norwitz <nnorwitz@gmail.com>
Mon, 31 Dec 2007 23:48:47 +0000 (23:48 +0000)
Objects/descrobject.c

index 3cfdb973489a0a0154ec66d32115e81cae874f8e..4b599ec2c88f7d305ec462008f8d1c3b06f059ba 100644 (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;