summaryrefslogtreecommitdiffstats
path: root/Objects
diff options
context:
space:
mode:
Diffstat (limited to 'Objects')
-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) {