utf: functions 2 79/18679/1
Antoine ELIAS [Thu, 10 Nov 2016 07:37:06 +0000 (08:37 +0100)]
Change-Id: Ib7e5a01373c5cfd5033a5c52037f10d07f6328b6

scilab/modules/functions/sci_gateway/cpp/sci_exec.cpp

index 7abc4c8..31b2be2 100644 (file)
@@ -164,8 +164,6 @@ types::Function::ReturnValue sci_exec(types::typed_list &in, int _iRetCount, typ
         stFile = pstFile;
         file = new std::ifstream(pstFile);
 
-        FREE(pstFile);
-
         char* pstTemp = (char*)MALLOC(sizeof(char) * (PATH_MAX * 2));
         get_full_path(pstTemp, pstFile, PATH_MAX * 2);
         stFile = pstTemp;