mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +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);
|
PyTuple_SET_ITEM(newargs, i+1, x);
|
||||||
}
|
}
|
||||||
x = PyObject_Call(func, newargs, kwds);
|
x = PyObject_Call(func, newargs, kwds);
|
||||||
|
Py_DECREF(newargs);
|
||||||
Py_DECREF(func);
|
Py_DECREF(func);
|
||||||
return x;
|
return x;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue