diff options
author | Guido van Rossum <guido@python.org> | 2001-10-01 15:55:28 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2001-10-01 15:55:28 (GMT) |
commit | 25d1807d23fb89213664274c2dada83fd12dee7d (patch) | |
tree | 4eee033a7f509fe1619327a4542ff6b133ca543c /Objects | |
parent | e9ba525c2b5481fbce0af633ce46733833ab1950 (diff) | |
download | cpython-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.c | 1 |
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; } |