Deallocate type units when destroying a DWARFContext.
authorBenjamin Kramer <benny.kra@googlemail.com>
Sun, 29 Sep 2013 11:24:02 +0000 (11:24 +0000)
committerBenjamin Kramer <benny.kra@googlemail.com>
Sun, 29 Sep 2013 11:24:02 +0000 (11:24 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191637 91177308-0d34-0410-b5e6-96231b3b80d8

lib/DebugInfo/DWARFContext.cpp

index f8234e93c58cc5c401a70e6a1b7b6a0a09f103de..df4633d2c0507e8b8d56db0b2563a673a39320e2 100644 (file)
@@ -25,6 +25,7 @@ typedef DWARFDebugLine::LineTable DWARFLineTable;
 
 DWARFContext::~DWARFContext() {
   DeleteContainerPointers(CUs);
+  DeleteContainerPointers(TUs);
   DeleteContainerPointers(DWOCUs);
 }