diff options
author | Phillip J. Eby <pje@telecommunity.com> | 2006-04-15 01:02:17 +0000 |
---|---|---|
committer | Phillip J. Eby <pje@telecommunity.com> | 2006-04-15 01:02:17 +0000 |
commit | 8ebb28df3a6e0bce240b6c2aa20d7aa5a4dfef39 (patch) | |
tree | 066424b3c1e37a639145e6453cb4f7d1b83b41e1 /Python/mysnprintf.c | |
parent | 3cfea2dc987b90e637c4cbd5db5dc1f542e448b2 (diff) | |
download | cpython-git-8ebb28df3a6e0bce240b6c2aa20d7aa5a4dfef39.tar.gz |
Fix SF#1470508: crash in generator cycle finalization. There were two
problems: first, PyGen_NeedsFinalizing() had an off-by-one bug that
prevented it from ever saying a generator didn't need finalizing, and
second, frame objects cleared themselves in a way that caused their
owning generator to think they were still executable, causing a double
deallocation of objects on the value stack if there was still a loop
on the block stack. This revision also removes some unnecessary
close() operations from test_generators that are now appropriately
handled by the cycle collector.
Diffstat (limited to 'Python/mysnprintf.c')
0 files changed, 0 insertions, 0 deletions