Cleanup in read_generic_file

This commit is contained in:
twinaphex 2015-03-03 09:51:06 +01:00
parent 40f12007aa
commit 35c2d74d1a

View File

@ -114,8 +114,7 @@ static bool read_generic_file(const char *path, void **buf, ssize_t *len)
if (_len < 0)
goto error;
if (fseek(file, 0, SEEK_SET) != 0)
goto error;
rewind(file);
rom_buf = malloc(_len + 1);