From: Guido van Rossum Date: Mon, 1 Oct 2001 15:55:28 +0000 (+0000) Subject: slot_tp_new(): newargs was leaking. X-Git-Tag: v2.2.1c1~1519 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=25d1807d23fb89213664274c2dada83fd12dee7d;p=python slot_tp_new(): newargs was leaking. --- diff --git a/Objects/typeobject.c b/Objects/typeobject.c index bf40951fdb..7a79bcb7c6 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; }