summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2008-02-27 01:08:04 (GMT)
committerRaymond Hettinger <python@rcn.com>2008-02-27 01:08:04 (GMT)
commit3bd771263d21ba7f209d31d96141ff558dd1266f (patch)
treeb43436087164d36f62a41aa9695d7a5d60f74f34 /Modules
parent93e804da9cb2e36801e153d2b9c9f8332c70784f (diff)
downloadcpython-3bd771263d21ba7f209d31d96141ff558dd1266f.zip
cpython-3bd771263d21ba7f209d31d96141ff558dd1266f.tar.gz
cpython-3bd771263d21ba7f209d31d96141ff558dd1266f.tar.bz2
One too many decrefs.
Diffstat (limited to 'Modules')
-rw-r--r--Modules/itertoolsmodule.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/Modules/itertoolsmodule.c b/Modules/itertoolsmodule.c
index 10c5e0b..4efde75 100644
--- a/Modules/itertoolsmodule.c
+++ b/Modules/itertoolsmodule.c
@@ -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;