From 41fe88e7b46331362becd01c5cf9c18aee923a80 Mon Sep 17 00:00:00 2001 From: Benjamin Kramer Date: Sun, 29 Sep 2013 11:24:02 +0000 Subject: Deallocate type units when destroying a DWARFContext. llvm-svn: 191637 --- llvm/lib/DebugInfo/DWARFContext.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'llvm/lib/DebugInfo') diff --git a/llvm/lib/DebugInfo/DWARFContext.cpp b/llvm/lib/DebugInfo/DWARFContext.cpp index f8234e93c58..df4633d2c05 100644 --- a/llvm/lib/DebugInfo/DWARFContext.cpp +++ b/llvm/lib/DebugInfo/DWARFContext.cpp @@ -25,6 +25,7 @@ typedef DWARFDebugLine::LineTable DWARFLineTable; DWARFContext::~DWARFContext() { DeleteContainerPointers(CUs); + DeleteContainerPointers(TUs); DeleteContainerPointers(DWOCUs); } -- cgit v1.2.3