mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +00:00
parent
ea5e5990c9
commit
253021dd94
1 changed files with 5 additions and 0 deletions
|
@ -7018,6 +7018,11 @@ init_subclass(PyTypeObject *type, PyObject *kwds)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
tuple = PyTuple_New(0);
|
tuple = PyTuple_New(0);
|
||||||
|
if (tuple == NULL) {
|
||||||
|
Py_DECREF(func);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
tmp = PyObject_Call(func, tuple, kwds);
|
tmp = PyObject_Call(func, tuple, kwds);
|
||||||
Py_DECREF(tuple);
|
Py_DECREF(tuple);
|
||||||
Py_DECREF(func);
|
Py_DECREF(func);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue