diff options
author | Michael W. Hudson <mwh@python.net> | 2004-08-02 13:22:01 (GMT) |
---|---|---|
committer | Michael W. Hudson <mwh@python.net> | 2004-08-02 13:22:01 (GMT) |
commit | f8df9a89bcb8304862ed22328b40240535ddeafc (patch) | |
tree | 1f2f9a63bb673f705fe25481d05ec73fec948e40 /Objects | |
parent | 52db519faa6b0d4f611c81b4a8b181dfb988c678 (diff) | |
download | cpython-f8df9a89bcb8304862ed22328b40240535ddeafc.zip cpython-f8df9a89bcb8304862ed22328b40240535ddeafc.tar.gz cpython-f8df9a89bcb8304862ed22328b40240535ddeafc.tar.bz2 |
Add a missing decref.
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/rangeobject.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Objects/rangeobject.c b/Objects/rangeobject.c index a6d1611..132d4cc 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; } } |