From 25d1807d23fb89213664274c2dada83fd12dee7d Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Mon, 1 Oct 2001 15:55:28 +0000 Subject: [PATCH] slot_tp_new(): newargs was leaking. --- Objects/typeobject.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Objects/typeobject.c b/Objects/typeobject.c index bf40951fdb9..7a79bcb7c60 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; }