Commit 3a2d9fc4 authored by Stefan Behnel's avatar Stefan Behnel

make CallNode a NewTempExprNode

parent 9132d124
......@@ -678,6 +678,7 @@ class NewTempExprNode(ExprNode):
def free_temps(self, code):
if self.is_temp:
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:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment