summaryrefslogtreecommitdiff
path: root/lib/DebugInfo
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2013-09-29 11:24:02 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2013-09-29 11:24:02 +0000
commit1fe49e68baf567a689312eaf5973e017b8d2fdd5 (patch)
tree193a4dbafd90da5a4131d073499d465fce1f042a /lib/DebugInfo
parentfd40d514ec7e95fe4a59a7a467c887b026364ff2 (diff)
downloadllvm-1fe49e68baf567a689312eaf5973e017b8d2fdd5.tar.gz
llvm-1fe49e68baf567a689312eaf5973e017b8d2fdd5.tar.bz2
llvm-1fe49e68baf567a689312eaf5973e017b8d2fdd5.tar.xz
Deallocate type units when destroying a DWARFContext.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@191637 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/DebugInfo')
-rw-r--r--lib/DebugInfo/DWARFContext.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/DebugInfo/DWARFContext.cpp b/lib/DebugInfo/DWARFContext.cpp
index f8234e93c5..df4633d2c0 100644
--- a/lib/DebugInfo/DWARFContext.cpp
+++ b/lib/DebugInfo/DWARFContext.cpp
@@ -25,6 +25,7 @@ typedef DWARFDebugLine::LineTable DWARFLineTable;
DWARFContext::~DWARFContext() {
DeleteContainerPointers(CUs);
+ DeleteContainerPointers(TUs);
DeleteContainerPointers(DWOCUs);
}