Coverity #1098608, #1098610 fixed 13/18213/2
Dhruv Khattar [Fri, 3 Jun 2016 21:41:13 +0000 (02:41 +0530)]
Change-Id: I171a1bc08ab5e964e338ad507bdc51ed1a3d8696

scilab/modules/scinotes/sci_gateway/cpp/sci_scinotes.cpp

index 1668cba..9675c81 100644 (file)
@@ -318,6 +318,8 @@ int sci_scinotes(char * fname, void* pvApiCtx)
                     {
                         printError(&sciErr, 0);
                         Scierror(999, _("%s: Can not read input argument #%d.\n"), fname, 3);
+                        freeArrayOfWideString(pStVarOne, m1 * n1);
+                        FREE(lenStVarOne);
                         return 0;
                     }