diff options
author | Raymond Hettinger <python@rcn.com> | 2008-02-27 01:08:04 (GMT) |
---|---|---|
committer | Raymond Hettinger <python@rcn.com> | 2008-02-27 01:08:04 (GMT) |
commit | 3bd771263d21ba7f209d31d96141ff558dd1266f (patch) | |
tree | b43436087164d36f62a41aa9695d7a5d60f74f34 | |
parent | 93e804da9cb2e36801e153d2b9c9f8332c70784f (diff) | |
download | cpython-3bd771263d21ba7f209d31d96141ff558dd1266f.zip cpython-3bd771263d21ba7f209d31d96141ff558dd1266f.tar.gz cpython-3bd771263d21ba7f209d31d96141ff558dd1266f.tar.bz2 |
One too many decrefs.
-rw-r--r-- | Modules/itertoolsmodule.c | 4 |
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; |