]> granicus.if.org Git - python/commitdiff
Add a missing decref.
authorMichael W. Hudson <mwh@python.net>
Mon, 2 Aug 2004 13:22:01 +0000 (13:22 +0000)
committerMichael W. Hudson <mwh@python.net>
Mon, 2 Aug 2004 13:22:01 +0000 (13:22 +0000)
Objects/rangeobject.c

index a6d1611a155bc84725a97d2c672e540ebf6edb83..132d4cc947a38b4592875f46ba4b7c03b59609e1 100644 (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;
                }                       
        }