Skip to content

Commit

Permalink
Do not call Py_FinalizeEx() on failure
Browse files Browse the repository at this point in the history
  • Loading branch information
edwardalee committed Oct 16, 2024
1 parent 26674cf commit c234674
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,7 @@ private static String generateCPythonFunctionCaller(
+ " code again",
" }",
" " + PyUtil.generateGILReleaseCode(),
" Py_FinalizeEx();",
" exit(1);",
" exit(1);", // NOTE: Used to call Py_FinalizeEx() before exit, but it segfaults.
"}",
"",
"/* Release the thread. No Python API allowed beyond this point. */",
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/resources/lib/c/reactor-c

0 comments on commit c234674

Please sign in to comment.