summaryrefslogtreecommitdiffstats
path: root/Objects/rangeobject.c
diff options
context:
space:
mode:
authorMichael W. Hudson <mwh@python.net>2004-08-02 13:22:01 (GMT)
committerMichael W. Hudson <mwh@python.net>2004-08-02 13:22:01 (GMT)
commitf8df9a89bcb8304862ed22328b40240535ddeafc (patch)
tree1f2f9a63bb673f705fe25481d05ec73fec948e40 /Objects/rangeobject.c
parent52db519faa6b0d4f611c81b4a8b181dfb988c678 (diff)
downloadcpython-f8df9a89bcb8304862ed22328b40240535ddeafc.zip
cpython-f8df9a89bcb8304862ed22328b40240535ddeafc.tar.gz
cpython-f8df9a89bcb8304862ed22328b40240535ddeafc.tar.bz2
Add a missing decref.
Diffstat (limited to 'Objects/rangeobject.c')
-rw-r--r--Objects/rangeobject.c1
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;
}
}