From: Dag Sverre Seljebotn Date: Sun, 18 Jan 2009 11:47:45 +0000 (+0100) Subject: Pass on free_temps also through non-temp ExprNodes X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f4e84e9832e1ab216b0eafab3515db85a6b1d914;p=cython.git Pass on free_temps also through non-temp ExprNodes --- diff --git a/Cython/Compiler/ExprNodes.py b/Cython/Compiler/ExprNodes.py index d500d7a0..fa9f6ea3 100644 --- a/Cython/Compiler/ExprNodes.py +++ b/Cython/Compiler/ExprNodes.py @@ -510,7 +510,9 @@ class ExprNode(Node): pass def free_temps(self, code): - pass + if not self.is_temp: + self.free_subexpr_temps(code) + # otherwise, already freed in generate_evaluation_code def free_subexpr_temps(self, code): for sub in self.subexpr_nodes():