From d2bee32e9e0030dee22249a18998c079eec3b8cb Mon Sep 17 00:00:00 2001 From: Neal Norwitz Date: Tue, 1 Apr 2008 07:37:58 +0000 Subject: Fix a refleak --- Modules/itertoolsmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 @@ permutations_new(PyTypeObject *type, PyObject *args, PyObject *kwds) 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()) -- cgit v0.12