Use 'free' to release PerIDCache since it was allocated using calloc().
llvm-svn: 60556
This commit is contained in:
parent
8c84d28250
commit
baedbf47f6
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue