summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2001-10-01 15:55:28 (GMT)
committerGuido van Rossum <guido@python.org>2001-10-01 15:55:28 (GMT)
commit25d1807d23fb89213664274c2dada83fd12dee7d (patch)
tree4eee033a7f509fe1619327a4542ff6b133ca543c /Objects
parente9ba525c2b5481fbce0af633ce46733833ab1950 (diff)
downloadcpython-25d1807d23fb89213664274c2dada83fd12dee7d.zip
cpython-25d1807d23fb89213664274c2dada83fd12dee7d.tar.gz
cpython-25d1807d23fb89213664274c2dada83fd12dee7d.tar.bz2
slot_tp_new(): newargs was leaking.
Diffstat (limited to 'Objects')
-rw-r--r--Objects/typeobject.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Objects/typeobject.c b/Objects/typeobject.c
index bf40951..7a79bcb 100644
--- a/Objects/typeobject.c
+++ b/Objects/typeobject.c
@@ -3359,6 +3359,7 @@ slot_tp_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
PyTuple_SET_ITEM(newargs, i+1, x);
}
x = PyObject_Call(func, newargs, kwds);
+ Py_DECREF(newargs);
Py_DECREF(func);
return x;
}