[cfe-commits] r51579 - /cfe/trunk/lib/CodeGen/ModuleBuilder.cpp
Eli Friedman
eli.friedman at gmail.com
Mon May 26 21:22:24 PDT 2008
Author: efriedma
Date: Mon May 26 23:22:24 2008
New Revision: 51579
URL: http://llvm.org/viewvc/llvm-project?rev=51579&view=rev
Log:
Stop leaking the target data. (Leak found with valgrind.)
Modified:
cfe/trunk/lib/CodeGen/ModuleBuilder.cpp
Modified: cfe/trunk/lib/CodeGen/ModuleBuilder.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/lib/CodeGen/ModuleBuilder.cpp?rev=51579&r1=51578&r2=51579&view=diff
==============================================================================
--- cfe/trunk/lib/CodeGen/ModuleBuilder.cpp (original)
+++ cfe/trunk/lib/CodeGen/ModuleBuilder.cpp Mon May 26 23:22:24 2008
@@ -46,6 +46,7 @@
~CodeGenerator() {
delete Builder;
+ delete TD;
}
virtual void Initialize(ASTContext &Context) {
More information about the cfe-commits
mailing list