commit | 3bd771263d21ba7f209d31d96141ff558dd1266f | [log] [tgz] |
---|---|---|
author | Raymond Hettinger <python@rcn.com> | Wed Feb 27 01:08:04 2008 +0000 |
committer | Raymond Hettinger <python@rcn.com> | Wed Feb 27 01:08:04 2008 +0000 |
tree | b43436087164d36f62a41aa9695d7a5d60f74f34 | |
parent | 93e804da9cb2e36801e153d2b9c9f8332c70784f [diff] [blame] |
One too many decrefs.
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 @@ /* 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;