From: Stefan Behnel Date: Tue, 2 Dec 2008 21:25:37 +0000 (+0100) Subject: while loop needs temp disposal, too X-Git-Tag: 0.11-beta~169 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5ff4c25aa04bfd1326edd97400a87bd9f71e8158;p=cython.git while loop needs temp disposal, too --- diff --git a/Cython/Compiler/Nodes.py b/Cython/Compiler/Nodes.py index 139432f2..41f304c4 100644 --- a/Cython/Compiler/Nodes.py +++ b/Cython/Compiler/Nodes.py @@ -3644,9 +3644,11 @@ class WhileStatNode(LoopNode, StatNode): code.putln( "while (1) {") self.condition.generate_evaluation_code(code) + self.condition.generate_disposal_code(code) code.putln( "if (!%s) break;" % self.condition.result()) + self.condition.free_temps(code) self.body.generate_execution_code(code) code.put_label(code.continue_label) code.putln("}")