Add missing DECREF.

This commit is contained in:
Raymond Hettinger 2003-06-17 23:14:40 +00:00
parent 783eaf4774
commit 7d98fb9806
1 changed files with 3 additions and 1 deletions

View File

@ -1010,8 +1010,10 @@ chain_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
/* create chainobject structure */
lz = (chainobject *)type->tp_alloc(type, 0);
if (lz == NULL)
if (lz == NULL) {
Py_DECREF(ittuple);
return NULL;
}
lz->ittuple = ittuple;
lz->iternum = 0;