notaz.gp2x.de
/
picodrive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
fix broken error path
[picodrive.git]
/
pico
/
cart.c
diff --git
a/pico/cart.c
b/pico/cart.c
index
bb452c0
..
d091d62
100644
(file)
--- a/
pico/cart.c
+++ b/
pico/cart.c
@@
-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
\r
if (bytes_read <= 0) {
\r
elprintf(EL_STATUS, "read failed");
\r
-
free(rom
);
\r
+
plat_munmap(rom, rom_alloc_size
);
\r
return 3;
\r
}
\r
\r