Commit 16c0ca29 authored by Stefan Behnel's avatar Stefan Behnel

Clear "self.index_temps" after cleanup to avoid keeping dangling temporary state.

parent 2d46e8c6
...@@ -4376,6 +4376,7 @@ class BufferIndexNode(_IndexingBaseNode): ...@@ -4376,6 +4376,7 @@ class BufferIndexNode(_IndexingBaseNode):
def free_temps(self, code): def free_temps(self, code):
for temp in self.index_temps: for temp in self.index_temps:
code.funcstate.release_temp(temp) code.funcstate.release_temp(temp)
self.index_temps = ()
super(BufferIndexNode, self).free_temps(code) super(BufferIndexNode, self).free_temps(code)
......
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