Skip to content

Commit 76ea9cc

Browse files
author
rhettinger
committed
Add missing decref.
git-svn-id: http://svn.python.org/projects/python/trunk@38038 6015fed2-1504-0410-9fe1-9d1591cc4771
1 parent 7f43ed1 commit 76ea9cc

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Objects/abstract.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1439,6 +1439,7 @@ PySequence_Tuple(PyObject *v)
14391439
if (n < oldn) {
14401440
/* Check for overflow */
14411441
PyErr_NoMemory();
1442+
Py_DECREF(item);
14421443
goto Fail;
14431444
}
14441445
if (_PyTuple_Resize(&result, n) != 0) {

0 commit comments

Comments
 (0)