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:
8baf63e
)
fix broken error path
author
notaz
<notasas@gmail.com>
Sun, 16 Apr 2017 21:36:30 +0000
(
00:36
+0300)
committer
twinaphex
<libretro@gmail.com>
Fri, 18 Aug 2017 03:16:05 +0000
(
05:16
+0200)
pico/cart.c
patch
|
blob
|
blame
|
history
diff --git
a/pico/cart.c
b/pico/cart.c
index
25a847d
..
b35eb53
100644
(file)
--- a/
pico/cart.c
+++ b/
pico/cart.c
@@
-513,7
+513,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