From: Eli Friedman Date: Tue, 27 May 2008 04:22:24 +0000 (+0000) Subject: Stop leaking the target data. (Leak found with valgrind.) X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3b6c493f29c2617196ab6d035312ff83c4166b4b;p=clang Stop leaking the target data. (Leak found with valgrind.) git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51579 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/ModuleBuilder.cpp b/lib/CodeGen/ModuleBuilder.cpp index 6387c62279..1184307b86 100644 --- a/lib/CodeGen/ModuleBuilder.cpp +++ b/lib/CodeGen/ModuleBuilder.cpp @@ -46,6 +46,7 @@ namespace { ~CodeGenerator() { delete Builder; + delete TD; } virtual void Initialize(ASTContext &Context) {