Fix leak of GlobalModuleIndex::IdentifierIndex, found by LSan.

llvm-svn: 207262
This commit is contained in:
Nico Weber 2014-04-25 19:45:23 +00:00
parent 8dbcc3fe32
commit e68b847fdb
1 changed files with 3 additions and 1 deletions

View File

@ -228,7 +228,9 @@ GlobalModuleIndex::GlobalModuleIndex(llvm::MemoryBuffer *Buffer,
}
}
GlobalModuleIndex::~GlobalModuleIndex() { }
GlobalModuleIndex::~GlobalModuleIndex() {
delete static_cast<IdentifierIndexTable *>(IdentifierIndex);
}
std::pair<GlobalModuleIndex *, GlobalModuleIndex::ErrorCode>
GlobalModuleIndex::readIndex(StringRef Path) {