slot_tp_new(): newargs was leaking.

This commit is contained in:
Guido van Rossum 2001-10-01 15:55:28 +00:00
parent e9ba525c2b
commit 25d1807d23
1 changed files with 1 additions and 0 deletions

View 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;
}