mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
slot_tp_new(): newargs was leaking.
This commit is contained in:
parent
e9ba525c2b
commit
25d1807d23
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue