Coverity Fix #1321400 Resource Leak 64/17964/10
Aashish Misraa [Wed, 23 Mar 2016 12:55:41 +0000 (17:55 +0530)]
Change-Id: I395f554b811efc7e46f24b04776c30af6aa6c849

scilab/modules/fileio/src/c/fscanfMat.c

index 46e18c4..93bdd4a 100644 (file)
@@ -145,6 +145,7 @@ fscanfMatResult *fscanfMat(char *filename, char *format, char *separator)
             resultFscanfMat->text = NULL;
             resultFscanfMat->values = NULL;
         }
+        freeArrayOfWideString(pwsLines, nblines);
         return resultFscanfMat;
     }