Forums

Help

open(FileName, O_RDONLY) without close file?

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?