Commit c288b7b1 authored by Stefan Behnel's avatar Stefan Behnel

fix refleak on literal/slow tuple creation

parent d60b3659
...@@ -5863,6 +5863,8 @@ class SequenceNode(ExprNode): ...@@ -5863,6 +5863,8 @@ class SequenceNode(ExprNode):
def generate_subexpr_disposal_code(self, code): def generate_subexpr_disposal_code(self, code):
if self.mult_factor and self.mult_factor.type.is_int: if self.mult_factor and self.mult_factor.type.is_int:
super(SequenceNode, self).generate_subexpr_disposal_code(code) super(SequenceNode, self).generate_subexpr_disposal_code(code)
elif self.type is Builtin.tuple_type and (self.is_literal or self.slow):
super(SequenceNode, self).generate_subexpr_disposal_code(code)
else: else:
# We call generate_post_assignment_code here instead # We call generate_post_assignment_code here instead
# of generate_disposal_code, because values were stored # of generate_disposal_code, because values were stored
......
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