Memory leak fix by Magliocchetti Riccardo.

This commit is contained in:
yabause 2008-11-04 21:53:33 +00:00
parent 551e68ff70
commit c24fbedc62
1 changed files with 6 additions and 0 deletions

View File

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