Use 'free' to release PerIDCache since it was allocated using calloc().

llvm-svn: 60556
This commit is contained in:
Ted Kremenek 2008-12-04 22:09:37 +00:00
parent 8c84d28250
commit baedbf47f6
1 changed files with 1 additions and 1 deletions

View File

@ -244,7 +244,7 @@ PTHManager::PTHManager(const llvm::MemoryBuffer* buf, void* fileLookup,
PTHManager::~PTHManager() {
delete Buf;
delete (PTHFileLookup*) FileLookup;
delete [] (IdentifierInfo**) PerIDCache;
assert(PerIDCache); free(PerIDCache);
}
PTHManager* PTHManager::Create(const std::string& file, Preprocessor& PP) {