From 42ffac8197a444b92bc6d46442ff3058588fe264 Mon Sep 17 00:00:00 2001 From: riccardom Date: Fri, 25 Mar 2011 17:15:14 +0000 Subject: [PATCH] firmware: don't leak fp when not patched. --- desmume/src/firmware.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/desmume/src/firmware.cpp b/desmume/src/firmware.cpp index 523c2641e..e8ef9d001 100644 --- a/desmume/src/firmware.cpp +++ b/desmume/src/firmware.cpp @@ -571,6 +571,7 @@ bool CFIRMWARE::load() path.getpathnoext(path.FIRMWARE, &MMU.fw.userfile[0]); strcat(MMU.fw.userfile, ".dfc"); // DeSmuME Firmware Config + fclose(fp); fp = fopen(MMU.fw.userfile, "rb"); if (fp) {