Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
ac6d9069
Commit
ac6d9069
authored
Oct 31, 2007
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix function import refcount (Stefan Behnel)
parent
24d1ae0f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
Cython/Compiler/ModuleNode.py
Cython/Compiler/ModuleNode.py
+4
-2
No files found.
Cython/Compiler/ModuleNode.py
View file @
ac6d9069
...
...
@@ -166,9 +166,11 @@ class ModuleNode(Nodes.Node, Nodes.BlockNode):
entry
.
name
,
entry
.
cname
,
sig
))
h_code
.
putln
(
"Py_DECREF(module);"
)
h_code
.
putln
(
"Py_DECREF(module);
module = 0;
"
)
for
entry
in
public_extension_types
:
self
.
generate_type_import_call
(
entry
.
type
,
h_code
,
"goto bad;"
)
self
.
generate_type_import_call
(
entry
.
type
,
h_code
,
"if (!%s) goto bad;"
%
entry
.
type
.
typeptr_cname
)
h_code
.
putln
(
"return 0;"
)
h_code
.
putln
(
"bad:"
)
h_code
.
putln
(
"Py_XDECREF(module);"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment