diff Objects/rangeobject.c @ 32897:0dc8ffaac036 legacy-trunk

Add a missing decref.
author Michael W. Hudson <mwh@python.net>
date Mon, 02 Aug 2004 13:22:01 +0000
parents 04eb2ebb46e2
children 67d25217bc7f
line wrap: on
line diff
--- a/Objects/rangeobject.c	Mon Aug 02 13:21:09 2004 +0000
+++ b/Objects/rangeobject.c	Mon Aug 02 13:22:01 2004 +0000
@@ -36,6 +36,7 @@
 		    (last < (-1 - PyInt_GetMax() - step))) {
 			PyErr_SetString(PyExc_OverflowError,
 					"integer addition");
+			Py_DECREF(obj);
 			return NULL;
 		}			
 	}