summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Target/CBackend/CBackend.cpp
diff options
context:
space:
mode:
authorNuno Lopes <nunoplopes@sapo.pt>2009-01-13 23:35:49 +0000
committerNuno Lopes <nunoplopes@sapo.pt>2009-01-13 23:35:49 +0000
commitb0a78f8fa12b9b590b959e899374045c1b767d04 (patch)
treec906a49dd16ab7ddf63c0697c0818ad0936cf9ee /llvm/lib/Target/CBackend/CBackend.cpp
parent255c0958ddc2d06c61160ea654260f146e79092e (diff)
downloadbcm5719-llvm-b0a78f8fa12b9b590b959e899374045c1b767d04.tar.gz
bcm5719-llvm-b0a78f8fa12b9b590b959e899374045c1b767d04.zip
fix memleaks
llvm-svn: 62198
Diffstat (limited to 'llvm/lib/Target/CBackend/CBackend.cpp')
-rw-r--r--llvm/lib/Target/CBackend/CBackend.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/CBackend/CBackend.cpp b/llvm/lib/Target/CBackend/CBackend.cpp
index 6f40caef213..541a1feca55 100644
--- a/llvm/lib/Target/CBackend/CBackend.cpp
+++ b/llvm/lib/Target/CBackend/CBackend.cpp
@@ -130,6 +130,8 @@ namespace {
virtual bool doFinalization(Module &M) {
// Free memory...
+ delete IL;
+ delete TD;
delete Mang;
FPConstantMap.clear();
TypeNames.clear();
OpenPOWER on IntegriCloud