From f4e84e9832e1ab216b0eafab3515db85a6b1d914 Mon Sep 17 00:00:00 2001 From: Dag Sverre Seljebotn Date: Sun, 18 Jan 2009 12:47:45 +0100 Subject: [PATCH] Pass on free_temps also through non-temp ExprNodes --- Cython/Compiler/ExprNodes.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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(): -- 2.26.2