Kaydet (Commit) 91010551 authored tarafından Barry Warsaw's avatar Barry Warsaw

unpack_sequence(): In finally clause, watch out for Py_DECREF

evaluating its arguments twice.
üst 09f95473
...@@ -2076,8 +2076,8 @@ unpack_sequence(v, argcnt, sp) ...@@ -2076,8 +2076,8 @@ unpack_sequence(v, argcnt, sp)
"unpack sequence of wrong size"); "unpack sequence of wrong size");
/* fall through */ /* fall through */
finally: finally:
for (; i > 0; i--) for (; i > 0; i--, sp++)
Py_DECREF(*sp++); Py_DECREF(*sp);
return 0; return 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