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
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cython
Commits
5cdd8e2d
Commit
5cdd8e2d
authored
Sep 30, 2020
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use more recent C-API functions on tear-down of the embedding code.
parent
3ad4c989
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
0 deletions
+9
-0
Cython/Utility/Embed.c
Cython/Utility/Embed.c
+9
-0
No files found.
Cython/Utility/Embed.c
View file @
5cdd8e2d
...
...
@@ -58,7 +58,12 @@ static int __Pyx_main(int argc, wchar_t **argv) {
}
Py_XDECREF
(
m
);
}
#if PY_VERSION_HEX < 0x03060000
Py_Finalize
();
#else
if
(
Py_FinalizeEx
()
<
0
)
return
2
;
#endif
return
0
;
}
...
...
@@ -200,7 +205,11 @@ int
if
(
res
==
0
)
res
=
__Pyx_main
(
argc
,
argv_copy
);
for
(
i
=
0
;
i
<
argc
;
i
++
)
{
#if PY_VERSION_HEX < 0x03050000
free
(
argv_copy2
[
i
]);
#else
PyMem_RawFree
(
argv_copy2
[
i
]);
#endif
}
free
(
argv_copy
);
free
(
argv_copy2
);
...
...
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