nbLines is not a pointer ==> do not free 82/10782/2
Vincent COUVERT [Tue, 12 Mar 2013 10:01:36 +0000 (11:01 +0100)]
Change-Id: I45891811c2e224f00dddb379992da03efbdeed82

scilab/modules/fileio/src/c/mgetl.c

index dc41911..c584ef3 100644 (file)
@@ -182,7 +182,6 @@ char **mgetl(int fd, int nbLinesIn, int *nbLinesOut, int *ierr)
                             {
                                 *nbLinesOut = 0;
                                 *ierr = MGETL_MEMORY_ALLOCATION_ERROR;
-                                FREE(nbLines);
                                 return NULL;
                             }
                         }