DWARFContext: Fix possible memory leak since r198908.
authorNAKAMURA Takumi <geek4civic@gmail.com>
Fri, 24 Jan 2014 13:40:43 +0000 (13:40 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Fri, 24 Jan 2014 13:40:43 +0000 (13:40 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@200000 91177308-0d34-0410-b5e6-96231b3b80d8

lib/DebugInfo/DWARFContext.cpp

index b725619d8e2528f16def360a984676717979a480..3b73f7ff4df629b5a043159b8d3f15e27e5bf7f0 100644 (file)
@@ -27,6 +27,7 @@ DWARFContext::~DWARFContext() {
   DeleteContainerPointers(CUs);
   DeleteContainerPointers(TUs);
   DeleteContainerPointers(DWOCUs);
+  DeleteContainerPointers(DWOTUs);
 }
 
 static void dumpPubSection(raw_ostream &OS, StringRef Name, StringRef Data,