notaz.gp2x.de
/
picodrive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
325ee16
)
fix broken error path
author
notaz
<notasas@gmail.com>
Sun, 16 Apr 2017 21:36:30 +0000
(
00:36
+0300)
committer
notaz
<notasas@gmail.com>
Sun, 16 Apr 2017 21:50:49 +0000
(
00:50
+0300)
pico/cart.c
patch
|
blob
|
blame
|
history
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