]> granicus.if.org Git - python/commitdiff
slot_tp_new(): newargs was leaking.
authorGuido van Rossum <guido@python.org>
Mon, 1 Oct 2001 15:55:28 +0000 (15:55 +0000)
committerGuido van Rossum <guido@python.org>
Mon, 1 Oct 2001 15:55:28 +0000 (15:55 +0000)
Objects/typeobject.c

index bf40951fdb9835108a93c08d6a52a898943a3235..7a79bcb7c605dc4ed1388562786baab3fc0c8348 100644 (file)
@@ -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;
 }