From: Dag Sverre Seljebotn Date: Tue, 31 Mar 2009 21:07:13 +0000 (+0200) Subject: Fix #271 X-Git-Tag: 0.12.alpha0~334^2 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=326f530dda2b2e4c243ab9d69da5349778517d43;p=cython.git Fix #271 --- diff --git a/Cython/Compiler/ModuleNode.py b/Cython/Compiler/ModuleNode.py index 21c62a8e..b7dc076b 100644 --- a/Cython/Compiler/ModuleNode.py +++ b/Cython/Compiler/ModuleNode.py @@ -1658,6 +1658,8 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode): code.put_goto(code.return_label) code.put_label(code.error_label) 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)