notaz.gp2x.de
/
pcsx_rearmed.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
clean windows line endings in libpcsxcore/plugins.c
[pcsx_rearmed.git]
/
libpcsxcore
/
ppf.c
diff --git
a/libpcsxcore/ppf.c
b/libpcsxcore/ppf.c
index
0d80107
..
edebdd0
100644
(file)
--- a/
libpcsxcore/ppf.c
+++ b/
libpcsxcore/ppf.c
@@
-347,8
+347,10
@@
int LoadSBI(const char *fname, int sector_count) {
return -1;
sbi_sectors = calloc(1, sector_count / 8);
return -1;
sbi_sectors = calloc(1, sector_count / 8);
- if (sbi_sectors == NULL)
+ if (sbi_sectors == NULL) {
+ fclose(sbihandle);
return -1;
return -1;
+ }
// 4-byte SBI header
fread(buffer, 1, 4, sbihandle);
// 4-byte SBI header
fread(buffer, 1, 4, sbihandle);