mirror of
https://github.com/python/cpython.git
synced 2025-12-09 02:35:14 +00:00
One too many decrefs.
This commit is contained in:
parent
93e804da9c
commit
3bd771263d
1 changed files with 1 additions and 3 deletions
|
|
@ -1794,10 +1794,8 @@ product_new(PyTypeObject *type, PyObject *args, PyObject *kwds)
|
||||||
|
|
||||||
/* create productobject structure */
|
/* create productobject structure */
|
||||||
lz = (productobject *)type->tp_alloc(type, 0);
|
lz = (productobject *)type->tp_alloc(type, 0);
|
||||||
if (lz == NULL) {
|
if (lz == NULL)
|
||||||
Py_DECREF(pools);
|
|
||||||
goto error;
|
goto error;
|
||||||
}
|
|
||||||
|
|
||||||
lz->pools = pools;
|
lz->pools = pools;
|
||||||
lz->maxvec = maxvec;
|
lz->maxvec = maxvec;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue