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)
  • Loading branch information
fredroy committed Sep 9, 2024
1 parent 9d57a6a commit c695ebd
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 c695ebd

Please sign in to comment.