From: Dag Sverre Seljebotn Date: Sun, 30 Nov 2008 10:42:22 +0000 (+0100) Subject: Small fix X-Git-Tag: 0.11-beta~180 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=068db1d67da619e9dd2462ff39fd88c0b388c5b6;p=cython.git Small fix --- 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):