From 3a2d9fc48b7f5298a268ead6627aba0c3194ae21 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Wed, 3 Dec 2008 21:57:49 +0100 Subject: [PATCH] make CallNode a NewTempExprNode --- Cython/Compiler/ExprNodes.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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: -- 2.26.2