Fix a refleak

This commit is contained in:
Neal Norwitz 2008-04-01 07:37:58 +00:00
parent e1e9f235c2
commit d2bee32e9e
1 changed files with 1 additions and 1 deletions

View File

@ -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())