From: Stefan Behnel Date: Fri, 10 Apr 2009 07:06:56 +0000 (+0200) Subject: fix compiler crash in function cimport code X-Git-Tag: 0.12.alpha0~321 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a5e866b164ab5f814398bf2ed3fd8777f7fb4696;p=cython.git fix compiler crash in function cimport code --- diff --git a/Cython/Compiler/ModuleNode.py b/Cython/Compiler/ModuleNode.py index ec6fa733..02889226 100644 --- a/Cython/Compiler/ModuleNode.py +++ b/Cython/Compiler/ModuleNode.py @@ -1827,7 +1827,7 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode): if entries: env.use_utility_code(import_module_utility_code) env.use_utility_code(function_import_utility_code) - temp = code.globalstate.allocate_temp(py_object_type) + temp = code.funcstate.allocate_temp(py_object_type, manage_ref=True) code.putln( '%s = __Pyx_ImportModule("%s"); if (!%s) %s' % ( temp,