mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +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 */
|
||||
lz = (productobject *)type->tp_alloc(type, 0);
|
||||
if (lz == NULL) {
|
||||
Py_DECREF(pools);
|
||||
if (lz == NULL)
|
||||
goto error;
|
||||
}
|
||||
|
||||
lz->pools = pools;
|
||||
lz->maxvec = maxvec;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue