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); }