diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2020-04-11 21:32:13 +0200 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2020-04-11 21:32:34 +0200 |
commit | fcb44032968d8893ead5c63c7554d293d370ec1b (patch) | |
tree | 9c748622896d035429a2cc84bc0af29783a7cdc5 /Cython/Compiler/ModuleNode.py | |
parent | 017075a115314d39982dea493fc139ac1e4c5925 (diff) | |
download | cython-fcb44032968d8893ead5c63c7554d293d370ec1b.tar.gz |
Fix refleak in limited-api case for cross-module shared extension types and store them correctly as PyTypeObject* instead of a generic (and unusable) PyObject*.
Diffstat (limited to 'Cython/Compiler/ModuleNode.py')
-rw-r--r-- | Cython/Compiler/ModuleNode.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Cython/Compiler/ModuleNode.py b/Cython/Compiler/ModuleNode.py index 19e28a8ba..c1bc84787 100644 --- a/Cython/Compiler/ModuleNode.py +++ b/Cython/Compiler/ModuleNode.py @@ -2460,10 +2460,10 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode): code.putln('int %s;' % Naming.clineno_cname) code.putln('const char *%s;' % Naming.filename_cname) code.putln('#ifdef __Pyx_CyFunction_USED') - code.putln('PyObject *%s;' % Naming.cyfunction_type_cname) + code.putln('PyTypeObject *%s;' % Naming.cyfunction_type_cname) code.putln('#endif') code.putln('#ifdef __Pyx_FusedFunction_USED') - code.putln('PyObject *%s;' % Naming.fusedfunction_type_cname) + code.putln('PyTypeObject *%s;' % Naming.fusedfunction_type_cname) code.putln('#endif') def generate_module_state_end(self, env, modules, globalstate): |