mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
unpack_sequence(): In finally clause, watch out for Py_DECREF
evaluating its arguments twice.
This commit is contained in:
parent
09f9547393
commit
910105515e
1 changed files with 2 additions and 2 deletions
|
@ -2076,8 +2076,8 @@ unpack_sequence(v, argcnt, sp)
|
|||
"unpack sequence of wrong size");
|
||||
/* fall through */
|
||||
finally:
|
||||
for (; i > 0; i--)
|
||||
Py_DECREF(*sp++);
|
||||
for (; i > 0; i--, sp++)
|
||||
Py_DECREF(*sp);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue