mirror of
https://github.com/holub/mame
synced 2025-05-25 15:25:33 +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);
|
free(*data);
|
||||||
return FILERR_FAILURE;
|
return FILERR_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* close the file and return data */
|
||||||
|
core_fclose(file);
|
||||||
return FILERR_NONE;
|
return FILERR_NONE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user