From a5e866b164ab5f814398bf2ed3fd8777f7fb4696 Mon Sep 17 00:00:00 2001 From: Stefan Behnel Date: Fri, 10 Apr 2009 09:06:56 +0200 Subject: [PATCH] fix compiler crash in function cimport code --- Cython/Compiler/ModuleNode.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- 2.26.2