forked from OSchip/llvm-project
Plug leak. The DenseMaps of CXXRecordLayoutInfo weren't freed.
llvm-svn: 112006
This commit is contained in:
parent
3c6cd17c8a
commit
96dbfa2e65
|
@ -19,8 +19,10 @@ using namespace clang;
|
|||
void ASTRecordLayout::Destroy(ASTContext &Ctx) {
|
||||
if (FieldOffsets)
|
||||
Ctx.Deallocate(FieldOffsets);
|
||||
if (CXXInfo)
|
||||
if (CXXInfo) {
|
||||
Ctx.Deallocate(CXXInfo);
|
||||
CXXInfo->~CXXRecordLayoutInfo();
|
||||
}
|
||||
this->~ASTRecordLayout();
|
||||
Ctx.Deallocate(this);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue