Commit bb1ba04e authored by Stefan Behnel's avatar Stefan Behnel

comment

parent d84f7744
...@@ -6575,6 +6575,7 @@ class ListNode(SequenceNode): ...@@ -6575,6 +6575,7 @@ class ListNode(SequenceNode):
if self.type.is_array: if self.type.is_array:
# To be valid C++, we must allocate the memory on the stack # To be valid C++, we must allocate the memory on the stack
# manually and be sure not to reuse it for something else. # manually and be sure not to reuse it for something else.
# Yes, this means that we leak a temp array variable.
pass pass
else: else:
SequenceNode.release_temp_result(self, env) SequenceNode.release_temp_result(self, env)
......
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