-
assigned issue to
- changed version to 3.2
Improvements / Memory leak fix in PythonMatlab::PyMatlabSessionObject_run
Issue #74
resolved
- (improvement): check size of given stringarg and chose an appropriate length of command char array, instead of always allocating 3000 characters.
- If the function is returned by an exception, command is not freed. Please check in all if-cases if command is != NULL and if so free it there, too.
In order to test this, a computer with installed Matlab is required. Enable Matlab support in CMake of itom (BUILD_WITH_PYMATLAB = True) and set the variable PYMATLAB_INCLUDE_DIR to something like C:/Program Files/MATLAB/R2012a/extern/include.
Hint: Matlab has not to be available on the destination computer, only if one tries to start a session (dynamic function resolve in libmx.dll and libeng.dll)
Comments (2)
-
reporter -
- changed status to resolved
fix bug
#74: memory leak fixed→ <<cset 2160c35de3ab>>
- Log in to comment