From c695ebdaeacb3591a0d93aaa718386cd16a67faa Mon Sep 17 00:00:00 2001 From: Frederick Roy Date: Mon, 9 Sep 2024 12:53:58 +0900 Subject: [PATCH] use py_rawfree as reset() is called without gil (and it is clearing non-obj) --- Plugin/src/SofaPython3/PythonEnvironment.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plugin/src/SofaPython3/PythonEnvironment.cpp b/Plugin/src/SofaPython3/PythonEnvironment.cpp index dbdc5947..b1f41ff2 100644 --- a/Plugin/src/SofaPython3/PythonEnvironment.cpp +++ b/Plugin/src/SofaPython3/PythonEnvironment.cpp @@ -92,7 +92,7 @@ class PythonEnvironmentData void reset() { for(auto s : m_argv){ - PyMem_Free(s); + PyMem_RawFree(s); } m_argv.clear(); addedPath.clear();