Add a missing decref.
This commit is contained in:
parent
52db519faa
commit
f8df9a89bc
|
@ -36,6 +36,7 @@ PyRange_New(long start, long len, long step, int reps)
|
|||
(last < (-1 - PyInt_GetMax() - step))) {
|
||||
PyErr_SetString(PyExc_OverflowError,
|
||||
"integer addition");
|
||||
Py_DECREF(obj);
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue