Fixed resource leak in core_fload().

This commit is contained in:
Aaron Giles 2009-07-16 06:11:17 +00:00
parent 44df7f7533
commit 1fc759af69

View File

@ -724,6 +724,9 @@ file_error core_fload(const char *filename, void **data, UINT32 *length)
free(*data);
return FILERR_FAILURE;
}
/* close the file and return data */
core_fclose(file);
return FILERR_NONE;
}