mirror of
https://github.com/python/cpython.git
synced 2024-11-28 04:15:11 +08:00
Add missing DECREF.
This commit is contained in:
parent
783eaf4774
commit
7d98fb9806
@ -1010,8 +1010,10 @@ chain_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
|
|||||||
|
|
||||||
/* create chainobject structure */
|
/* create chainobject structure */
|
||||||
lz = (chainobject *)type->tp_alloc(type, 0);
|
lz = (chainobject *)type->tp_alloc(type, 0);
|
||||||
if (lz == NULL)
|
if (lz == NULL) {
|
||||||
|
Py_DECREF(ittuple);
|
||||||
return NULL;
|
return NULL;
|
||||||
|
}
|
||||||
|
|
||||||
lz->ittuple = ittuple;
|
lz->ittuple = ittuple;
|
||||||
lz->iternum = 0;
|
lz->iternum = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user