Coverity #1247398, #1199692, #1321278, #1321279, #1321280, #1321281, #1097625 fixed...
[scilab.git] / scilab / modules / io / sci_gateway / cpp / sci_file.cpp
index 3e4f62a..0306432 100644 (file)
@@ -483,7 +483,7 @@ types::Function::ReturnValue sci_file_one_rhs(types::typed_list &in, int _iRetCo
         {
             types::String* pS = new types::String(pstType);
             out.push_back(pS);
-            delete[] pstType;
+            FREE(pstType);
         }
     }
 
@@ -494,7 +494,7 @@ types::Function::ReturnValue sci_file_one_rhs(types::typed_list &in, int _iRetCo
         {
             types::String* pS = new types::String(pstName);
             out.push_back(pS);
-            delete[] pstName;
+            FREE(pstName);
         }
     }