fix temp leak in default argument preparation code
authorStefan Behnel <scoder@users.berlios.de>
Sun, 28 Dec 2008 16:54:53 +0000 (17:54 +0100)
committerStefan Behnel <scoder@users.berlios.de>
Sun, 28 Dec 2008 16:54:53 +0000 (17:54 +0100)
Cython/Compiler/Nodes.py

index 1a88d197cca857c0915a337c6f1ee1b3dd513680..ae0a62ff4dffab70b2525d0823b4af8df7eb4759 100644 (file)
@@ -1174,6 +1174,7 @@ class FuncDefNode(StatNode, BlockNode):
                         code.putln(
                             "%s = 0;" %
                                 default.result())
+                    default.free_temps(code)
         # For Python class methods, create and store function object
         if self.assmt:
             self.assmt.generate_execution_code(code)