Commit 844cfa34 authored by Stefan Behnel's avatar Stefan Behnel

fix temp leak in default argument preparation code

parent 82af1c0f
...@@ -1174,6 +1174,7 @@ class FuncDefNode(StatNode, BlockNode): ...@@ -1174,6 +1174,7 @@ class FuncDefNode(StatNode, BlockNode):
code.putln( code.putln(
"%s = 0;" % "%s = 0;" %
default.result()) default.result())
default.free_temps(code)
# For Python class methods, create and store function object # For Python class methods, create and store function object
if self.assmt: if self.assmt:
self.assmt.generate_execution_code(code) self.assmt.generate_execution_code(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