From eed148b7fcde73477379388da58d12cd379a6a81 Mon Sep 17 00:00:00 2001 From: notaz Date: Tue, 3 Feb 2015 01:35:33 +0200 Subject: frontend: update libpicofe --- libpcsxcore/ppf.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'libpcsxcore') diff --git a/libpcsxcore/ppf.c b/libpcsxcore/ppf.c index 0d80107..edebdd0 100644 --- 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); - if (sbi_sectors == NULL) + if (sbi_sectors == NULL) { + fclose(sbihandle); return -1; + } // 4-byte SBI header fread(buffer, 1, 4, sbihandle); -- cgit v1.2.3