Commit 25d1807d authored by Guido van Rossum's avatar Guido van Rossum

slot_tp_new(): newargs was leaking.

parent e9ba525c
......@@ -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;
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment