mirror of
https://github.com/GRRLIB/GRRLIB.git
synced 2024-11-22 06:52:20 +00:00
[CHG] Possible resource leak
This commit is contained in:
parent
6174a3e4f8
commit
d7e04f987f
1 changed files with 1 additions and 0 deletions
|
@ -48,6 +48,7 @@ int GRRLIB_LoadFile(const char* filename, unsigned char* *data) {
|
|||
// Get file length
|
||||
fseek(fd, 0, SEEK_END);
|
||||
if ( !(len = ftell(fd)) ) {
|
||||
fclose(fd);
|
||||
*data = NULL;
|
||||
return 0;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue