From: Michael W. Hudson Date: Mon, 2 Aug 2004 13:22:01 +0000 (+0000) Subject: Add a missing decref. X-Git-Tag: v2.4a2~66 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f8df9a89bcb8304862ed22328b40240535ddeafc;p=python Add a missing decref. --- diff --git a/Objects/rangeobject.c b/Objects/rangeobject.c index a6d1611a15..132d4cc947 100644 --- a/Objects/rangeobject.c +++ b/Objects/rangeobject.c @@ -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; } }