Add a missing decref.

This commit is contained in:
Michael W. Hudson 2004-08-02 13:22:01 +00:00
parent 52db519faa
commit f8df9a89bc
1 changed files with 1 additions and 0 deletions

View File

@ -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;
}
}