[CHG] Possible resource leak

This commit is contained in:
Crayon2000 2010-09-01 22:55:02 +00:00
parent 6174a3e4f8
commit d7e04f987f

View file

@ -48,6 +48,7 @@ int GRRLIB_LoadFile(const char* filename, unsigned char* *data) {
// Get file length // Get file length
fseek(fd, 0, SEEK_END); fseek(fd, 0, SEEK_END);
if ( !(len = ftell(fd)) ) { if ( !(len = ftell(fd)) ) {
fclose(fd);
*data = NULL; *data = NULL;
return 0; return 0;
} }