From: Dag Sverre Seljebotn Date: Tue, 31 Mar 2009 21:10:19 +0000 (+0200) Subject: Merge of #271 bugfix X-Git-Tag: 0.12.alpha0~334 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=3122b195c654f3d4f63f0c84b50e05c3274a7385;p=cython.git Merge of #271 bugfix --- 3122b195c654f3d4f63f0c84b50e05c3274a7385 diff --cc Cython/Compiler/ModuleNode.py index 2ce6ca83,b7dc076b..4234fa39 --- a/Cython/Compiler/ModuleNode.py +++ b/Cython/Compiler/ModuleNode.py @@@ -1652,7 -1657,9 +1652,8 @@@ class ModuleNode(Nodes.Node, Nodes.Bloc code.put_goto(code.return_label) code.put_label(code.error_label) - # TODO: Should new temps be freed here? - code.put_var_xdecrefs(env.temp_entries) + for cname, type in code.funcstate.all_managed_temps(): + code.put_xdecref(cname, type) code.putln('__Pyx_AddTraceback("%s");' % env.qualified_name) env.use_utility_code(Nodes.traceback_utility_code) code.put_decref_clear(env.module_cname, py_object_type, nanny=False)