One too many decrefs.

This commit is contained in:
Raymond Hettinger 2008-02-27 01:08:04 +00:00
parent 93e804da9c
commit 3bd771263d
1 changed files with 1 additions and 3 deletions

View File

@ -1794,10 +1794,8 @@ product_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
/* create productobject structure */
lz = (productobject *)type->tp_alloc(type, 0);
if (lz == NULL) {
Py_DECREF(pools);
if (lz == NULL)
goto error;
}
lz->pools = pools;
lz->maxvec = maxvec;