Fixed a resource leak.

This commit is contained in:
Armin Novak 2015-06-24 09:45:40 +02:00
parent 2e762c881c
commit 2ff1205dde

View File

@ -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;
}