From c168e50722cae5a01618ef87284d107ededd932c Mon Sep 17 00:00:00 2001 From: Ted Kremenek Date: Sat, 8 Oct 2011 05:28:26 +0000 Subject: Free 'TheTargetCodeGenInfo' in the class CodeGenModule. This looks like an obvious memory leak that was reported from LLDB devs. The comment indicates the leak is deliberate, but I have no idea why this needs to be so. Please comment/revert if you know otherwise. llvm-svn: 141479 --- clang/lib/CodeGen/CodeGenModule.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'clang/lib/CodeGen/CodeGenModule.cpp') diff --git a/clang/lib/CodeGen/CodeGenModule.cpp b/clang/lib/CodeGen/CodeGenModule.cpp index d8b9c9d..aab513f 100644 --- a/clang/lib/CodeGen/CodeGenModule.cpp +++ b/clang/lib/CodeGen/CodeGenModule.cpp @@ -117,6 +117,7 @@ CodeGenModule::~CodeGenModule() { delete ObjCRuntime; delete OpenCLRuntime; delete CUDARuntime; + delete TheTargetCodeGenInfo; delete &ABI; delete TBAA; delete DebugInfo; -- cgit v1.1