From: Stefan Behnel Date: Sun, 28 Dec 2008 16:54:53 +0000 (+0100) Subject: fix temp leak in default argument preparation code X-Git-Tag: 0.11-beta~67 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=844cfa34743c2af6a18998148e2fa369c666f85f;p=cython.git fix temp leak in default argument preparation code --- diff --git a/Cython/Compiler/Nodes.py b/Cython/Compiler/Nodes.py index 1a88d197..ae0a62ff 100644 --- a/Cython/Compiler/Nodes.py +++ b/Cython/Compiler/Nodes.py @@ -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)