Ticket #7: cppcheck_lwo_memleak.patch

File cppcheck_lwo_memleak.patch, 380 bytes (added by orbitcowboy, 2 years ago)

fix

  • lwio.c

     
    294294 
    295295   if ( fseek( fp, pos, SEEK_SET )) { 
    296296      flen = FLEN_ERROR; 
     297          free(s); 
    297298      return NULL; 
    298299   } 
    299300   if ( 1 != fread( s, len, 1, fp )) { 
    300301      flen = FLEN_ERROR; 
     302          free(s); 
    301303      return NULL; 
    302304   } 
    303305