]> granicus.if.org Git - python/commitdiff
Add missing decref.
authorRaymond Hettinger <python@rcn.com>
Thu, 16 Dec 2004 15:10:21 +0000 (15:10 +0000)
committerRaymond Hettinger <python@rcn.com>
Thu, 16 Dec 2004 15:10:21 +0000 (15:10 +0000)
Objects/abstract.c

index b98100155e4165b5161b253c0372bff0a92b9c30..024f97dac1ef2054ea2822a9e185241daf916ca1 100644 (file)
@@ -1439,6 +1439,7 @@ PySequence_Tuple(PyObject *v)
                        if (n < oldn) {
                                /* Check for overflow */
                                PyErr_NoMemory();
+                               Py_DECREF(item);
                                goto Fail; 
                        }
                        if (_PyTuple_Resize(&result, n) != 0) {