Commit a6695f2f authored by Dag Sverre Seljebotn's avatar Dag Sverre Seljebotn

Fixed reference leak for NewTempExprNode

parent 5ef559b2
...@@ -601,6 +601,8 @@ class NewTempExprNode(ExprNode): ...@@ -601,6 +601,8 @@ class NewTempExprNode(ExprNode):
def generate_disposal_code(self, code): def generate_disposal_code(self, code):
if self.is_temp: if self.is_temp:
if self.type.is_pyobject:
code.put_decref_clear(self.result(), self.ctype())
if not self.backwards_compatible_result: if not self.backwards_compatible_result:
code.funcstate.release_temp(self.temp_code) code.funcstate.release_temp(self.temp_code)
else: else:
......
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