summaryrefslogtreecommitdiffstats
path: root/Objects/abstract.c
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2004-12-16 15:10:21 (GMT)
committerRaymond Hettinger <python@rcn.com>2004-12-16 15:10:21 (GMT)
commite6bdb37e5bc7d250e17c3d4fef6961e178e02b64 (patch)
tree58a0110ed300a6f95617f4298bfbb82727561f56 /Objects/abstract.c
parent4d01259fb262e7eb035b56ae70637884ef4e8cd8 (diff)
downloadcpython-e6bdb37e5bc7d250e17c3d4fef6961e178e02b64.zip
cpython-e6bdb37e5bc7d250e17c3d4fef6961e178e02b64.tar.gz
cpython-e6bdb37e5bc7d250e17c3d4fef6961e178e02b64.tar.bz2
Add missing decref.
Diffstat (limited to 'Objects/abstract.c')
-rw-r--r--Objects/abstract.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Objects/abstract.c b/Objects/abstract.c
index b981001..024f97d 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) {