mirror of
https://github.com/python/cpython.git
synced 2025-11-03 03:22:27 +00:00
Add missing decref.
This commit is contained in:
parent
4d01259fb2
commit
e6bdb37e5b
1 changed files with 1 additions and 0 deletions
|
|
@ -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) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue