Coverity #1247398, #1199692, #1321278, #1321279, #1321280, #1321281, #1097625 fixed...
[scilab.git] / scilab / modules / external_objects_java / sci_gateway / cpp / sci_jconvMatrixMethod.cpp
index 7770071..0477d8d 100644 (file)
@@ -79,12 +79,12 @@ int sci_jconvMatrixMethod(char * fname, void* pvApiCtx)
     }
     else
     {
-        delete type;
+        FREE(type);
         Scierror(999, "%s: Invalid string: \"rc\" or \"cr\" expected.", fname);
         return 0;
     }
 
-    delete type;
+    FREE(type);
 
     LhsVar(1) = 0;
     PutLhsVar();