From 326f530dda2b2e4c243ab9d69da5349778517d43 Mon Sep 17 00:00:00 2001 From: Dag Sverre Seljebotn Date: Tue, 31 Mar 2009 23:07:13 +0200 Subject: [PATCH] Fix #271 --- Cython/Compiler/ModuleNode.py | 2 ++ 1 file changed, 2 insertions(+) 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) -- 2.26.2