From f8df9a89bcb8304862ed22328b40240535ddeafc Mon Sep 17 00:00:00 2001 From: "Michael W. Hudson" Date: Mon, 2 Aug 2004 13:22:01 +0000 Subject: [PATCH] Add a missing decref. --- Objects/rangeobject.c | 1 + 1 file changed, 1 insertion(+) diff --git a/Objects/rangeobject.c b/Objects/rangeobject.c index a6d1611a155..132d4cc947a 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; } }