Fix other misc leaks

Signed-off-by: Ran Benita <ran234@gmail.com>
master
Ran Benita 2012-03-03 01:17:21 +02:00
parent 30d88b93e7
commit e4447f8131
2 changed files with 5 additions and 0 deletions

View File

@ -355,6 +355,8 @@ AddDirectory(CompPair *cp, char *head, char *ptrn, char *rest, char *map,
}
#ifdef WIN32
while (FindNextFile(dirh, &file));
#else
closedir(dirp);
#endif
return nMatch;
}

View File

@ -349,6 +349,9 @@ MergeKeyGroups(SymbolsInfo * info,
WSGO("Could not allocate actions for group merge\n");
ACTION("Group %d of key %s not merged\n", group,
longText(into->name));
if (resultSyms != into->syms[group] &&
resultSyms != from->syms[group])
free(resultSyms);
return False;
}
}