r207138 - MicrosoftVTableContext: Don't leak VPtrInfos. Found by LSan, PR19522.
Nico Weber
nicolasweber at gmx.de
Thu Apr 24 12:52:12 PDT 2014
Author: nico
Date: Thu Apr 24 14:52:12 2014
New Revision: 207138
URL: http://llvm.org/viewvc/llvm-project?rev=207138&view=rev
Log:
MicrosoftVTableContext: Don't leak VPtrInfos. Found by LSan, PR19522.
Modified:
cfe/trunk/lib/AST/VTableBuilder.cpp
Modified: cfe/trunk/lib/AST/VTableBuilder.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/AST/VTableBuilder.cpp?rev=207138&r1=207137&r2=207138&view=diff
==============================================================================
--- cfe/trunk/lib/AST/VTableBuilder.cpp (original)
+++ cfe/trunk/lib/AST/VTableBuilder.cpp Thu Apr 24 14:52:12 2014
@@ -3274,6 +3274,8 @@ static bool rebucketPaths(VPtrInfoVector
}
MicrosoftVTableContext::~MicrosoftVTableContext() {
+ for (auto &P : VFPtrLocations)
+ llvm::DeleteContainerPointers(*P.second);
llvm::DeleteContainerSeconds(VFPtrLocations);
llvm::DeleteContainerSeconds(VFTableLayouts);
llvm::DeleteContainerSeconds(VBaseInfo);
More information about the cfe-commits
mailing list