From: Stefan Behnel Date: Wed, 3 Dec 2008 20:57:49 +0000 (+0100) Subject: make CallNode a NewTempExprNode X-Git-Tag: 0.11-beta~167 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=3a2d9fc48b7f5298a268ead6627aba0c3194ae21;p=cython.git make CallNode a NewTempExprNode --- diff --git a/Cython/Compiler/ExprNodes.py b/Cython/Compiler/ExprNodes.py index 1ed1fdee..4153073e 100644 --- a/Cython/Compiler/ExprNodes.py +++ b/Cython/Compiler/ExprNodes.py @@ -678,7 +678,8 @@ class NewTempExprNode(ExprNode): def free_temps(self, code): if self.is_temp: - self.release_temp_result(code) + if not self.type.is_void: + self.release_temp_result(code) else: self.free_subexpr_temps(code) @@ -2089,7 +2090,7 @@ class SliceNode(ExprNode): code.error_goto_if_null(self.result(), self.pos))) -class CallNode(ExprNode): +class CallNode(NewTempExprNode): def gil_check(self, env): # Make sure we're not in a nogil environment if env.nogil: