Commit bd8a46b8 authored by Raymond Hettinger's avatar Raymond Hettinger

Add missing decref.

parent 084718ad
...@@ -1439,6 +1439,7 @@ PySequence_Tuple(PyObject *v) ...@@ -1439,6 +1439,7 @@ PySequence_Tuple(PyObject *v)
if (n < oldn) { if (n < oldn) {
/* Check for overflow */ /* Check for overflow */
PyErr_NoMemory(); PyErr_NoMemory();
Py_DECREF(item);
goto Fail; goto Fail;
} }
if (_PyTuple_Resize(&result, n) != 0) { if (_PyTuple_Resize(&result, n) != 0) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment