mirror of
https://github.com/FunKey-Project/picodrive-irixxxx.git
synced 2026-02-19 07:42:40 +01:00
fix broken error path
This commit is contained in:
parent
325ee167fd
commit
01685eefb0
@ -569,7 +569,7 @@ int PicoCartLoad(pm_file *f,unsigned char **prom,unsigned int *psize,int is_sms)
|
||||
bytes_read = pm_read(rom,size,f); // Load up the rom
|
||||
if (bytes_read <= 0) {
|
||||
elprintf(EL_STATUS, "read failed");
|
||||
free(rom);
|
||||
plat_munmap(rom, rom_alloc_size);
|
||||
return 3;
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user