Fixed a resource leak.
This commit is contained in:
parent
2e762c881c
commit
2ff1205dde
@ -281,6 +281,7 @@ BYTE* test_progressive_load_file(char* path, char* file, UINT32* size)
|
||||
|
||||
if (fread(buffer, *size, 1, fp) != 1)
|
||||
{
|
||||
free(buffer);
|
||||
fclose(fp);
|
||||
return NULL;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user