[Python-3000-checkins] r62087 - python/branches/py3k/Modules/itertoolsmodule.c
neal.norwitz
python-3000-checkins at python.org
Tue Apr 1 09:37:59 CEST 2008
Author: neal.norwitz
Date: Tue Apr 1 09:37:58 2008
New Revision: 62087
Modified:
python/branches/py3k/Modules/itertoolsmodule.c
Log:
Fix a refleak
Modified: python/branches/py3k/Modules/itertoolsmodule.c
==============================================================================
--- python/branches/py3k/Modules/itertoolsmodule.c (original)
+++ python/branches/py3k/Modules/itertoolsmodule.c Tue Apr 1 09:37:58 2008
@@ -2133,7 +2133,7 @@
if (robj != Py_None) {
if (!PyLong_Check(robj)) {
PyErr_SetString(PyExc_TypeError, "Expected int as r");
- return NULL;
+ goto error;
}
r = PyLong_AsSsize_t(robj);
if (r == -1 && PyErr_Occurred())
More information about the Python-3000-checkins
mailing list