commit | d2bee32e9e0030dee22249a18998c079eec3b8cb | [log] [tgz] |
---|---|---|
author | Neal Norwitz <nnorwitz@gmail.com> | Tue Apr 01 07:37:58 2008 +0000 |
committer | Neal Norwitz <nnorwitz@gmail.com> | Tue Apr 01 07:37:58 2008 +0000 |
tree | 4f4624069cde7716953bb0163f43155732054a1c | |
parent | e1e9f235c29763661a106cc00ac55740ef212da3 [diff] [blame] |
Fix a refleak
diff --git a/Modules/itertoolsmodule.c b/Modules/itertoolsmodule.c index 61128d2..a8063c5 100644 --- a/Modules/itertoolsmodule.c +++ b/Modules/itertoolsmodule.c
@@ -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())