From c24fbedc62330a70bb692c01303d170f753c5f60 Mon Sep 17 00:00:00 2001 From: yabause Date: Tue, 4 Nov 2008 21:53:33 +0000 Subject: [PATCH] Memory leak fix by Magliocchetti Riccardo. --- desmume/src/cflash.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/desmume/src/cflash.cpp b/desmume/src/cflash.cpp index fe3d0c856..ad7bd772d 100644 --- a/desmume/src/cflash.cpp +++ b/desmume/src/cflash.cpp @@ -867,6 +867,12 @@ cflash_close( void) { if (dirEntryLink != NULL) free(dirEntryLink); + if (dirEntriesInCluster != NULL) + free(dirEntriesInCluster); + + if (dirEntryPtr != NULL) + free(dirEntryPtr); + if (activeDirEnt != -1) fclose(hFile); }