Fix leak of GlobalModuleIndex::IdentifierIndex, found by LSan.
llvm-svn: 207262
This commit is contained in:
parent
8dbcc3fe32
commit
e68b847fdb
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue