]> granicus.if.org Git - clang/commitdiff
Fix leak in MicrosoftVTableContext
authorReid Kleckner <reid@kleckner.net>
Fri, 28 Feb 2014 23:26:22 +0000 (23:26 +0000)
committerReid Kleckner <reid@kleckner.net>
Fri, 28 Feb 2014 23:26:22 +0000 (23:26 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@202558 91177308-0d34-0410-b5e6-96231b3b80d8

lib/AST/VTableBuilder.cpp

index 1531614c8f8683c5518321828ab2a5e0ecd3eea2..660c0d15eb4ed2d9924c1ced9913e91fd967a079 100644 (file)
@@ -3373,6 +3373,7 @@ static bool rebucketPaths(VPtrInfoVector &Paths) {
 }
 
 MicrosoftVTableContext::~MicrosoftVTableContext() {
+  llvm::DeleteContainerSeconds(VFPtrLocations);
   llvm::DeleteContainerSeconds(VFTableLayouts);
   llvm::DeleteContainerSeconds(VBaseInfo);
 }