mirror of
https://github.com/holub/mame
synced 2025-05-24 06:30:04 +03:00
Fixed resource leak in core_fload().
This commit is contained in:
parent
44df7f7533
commit
1fc759af69
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user