Skip to content

Commit

Permalink
use py_rawfree as reset() is called without gil (and it is clearing n…
Browse files Browse the repository at this point in the history
…on-obj) (#447)
  • Loading branch information
fredroy authored and damienmarchal committed Sep 13, 2024
1 parent 4f26e7e commit 846b73c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Plugin/src/SofaPython3/PythonEnvironment.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ class PythonEnvironmentData
void reset()
{
for(auto s : m_argv){
PyMem_Free(s);
PyMem_RawFree(s);
}
m_argv.clear();
addedPath.clear();
Expand Down

0 comments on commit 846b73c

Please sign in to comment.