From: Raymond Hettinger Date: Thu, 16 Dec 2004 15:10:21 +0000 (+0000) Subject: Add missing decref. X-Git-Tag: v2.5a0~2254 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e6bdb37e5bc7d250e17c3d4fef6961e178e02b64;p=thirdparty%2FPython%2Fcpython.git Add missing decref. --- diff --git a/Objects/abstract.c b/Objects/abstract.c index b98100155e41..024f97dac1ef 100644 --- a/Objects/abstract.c +++ b/Objects/abstract.c @@ -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) {