open(FileName, O_RDONLY) without close file?

zzugyl
2013-01-08
2013-01-08
  • zzugyl
    zzugyl
    2013-01-08

    first thanks to your works!
    I use giflib try to decode a gif file like this:
    DGifOpenFileName.........
    DGifSlurp..........
    DGifCloseFile.........
    but debug check report there is memory leaks in dgif_lib.c line 55
    that is " if ((FileHandle = open(FileName, O_RDONLY)) == -1) {"
    is that true?