Fem: Call PyMem_Free() to free allocated buffer

This commit is contained in:
marioalexis
2022-02-07 01:08:36 -03:00
committed by wmayer
parent 7895af1822
commit efe0a39d34

View File

@@ -1016,8 +1016,11 @@ PyObject* FemMeshPy::addGroup(PyObject *args)
int theId = -1;
if (!PyArg_ParseTuple(args, "etet|i","utf-8", &Name, "utf-8", &typeString, &theId))
return 0;
std::string EncodedName = std::string(Name);
PyMem_Free(Name);
std::string EncodedTypeString = std::string(typeString);
PyMem_Free(typeString);
int retId = -1;