From 068db1d67da619e9dd2462ff39fd88c0b388c5b6 Mon Sep 17 00:00:00 2001 From: Dag Sverre Seljebotn Date: Sun, 30 Nov 2008 11:42:22 +0100 Subject: [PATCH] Small fix --- 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 51fc3a48..5ebc8f55 100644 --- a/Cython/Compiler/ExprNodes.py +++ b/Cython/Compiler/ExprNodes.py @@ -594,7 +594,9 @@ class NewTempExprNode(ExprNode): def allocate_target_temps(self, env, rhs): self.allocate_subexpr_temps(env) - rhs.release_temp(rhs) + self.is_target = True + if rhs: + rhs.release_temp(env) self.release_subexpr_temps(env) def allocate_temps(self, env, result = None): -- 2.26.2