summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/IR/MetadataTest.cpp
diff options
context:
space:
mode:
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-01-12 22:46:15 +0000
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>2015-01-12 22:46:15 +0000
commit380902ef6b8bbb513e0c66e03999bc385b1d2c72 (patch)
tree93d2f1860bbe711ad4206bc6179ca1ee07cb1b34 /llvm/unittests/IR/MetadataTest.cpp
parent0d5df0ac1cc97e1399b3d6fe0bb27533c58138b6 (diff)
downloadbcm5719-llvm-380902ef6b8bbb513e0c66e03999bc385b1d2c72.tar.gz
bcm5719-llvm-380902ef6b8bbb513e0c66e03999bc385b1d2c72.zip
IR: Fix unit test memory leak reported by ASan
http://lab.llvm.org:8011/builders/sanitizer-x86_64-linux-fast/builds/603/steps/check-llvm%20asan/logs/stdio Thanks Alexey for pointing me to this! llvm-svn: 225721
Diffstat (limited to 'llvm/unittests/IR/MetadataTest.cpp')
-rw-r--r--llvm/unittests/IR/MetadataTest.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/unittests/IR/MetadataTest.cpp b/llvm/unittests/IR/MetadataTest.cpp
index c86fdd4f923..af110742dd7 100644
--- a/llvm/unittests/IR/MetadataTest.cpp
+++ b/llvm/unittests/IR/MetadataTest.cpp
@@ -314,6 +314,7 @@ TEST_F(MDNodeTest, handleChangedOperandRecursion) {
Metadata *Ops3[] = {N2};
MDNode *N3 = MDNode::get(Context, Ops3);
Temp3->replaceAllUsesWith(N3);
+ delete Temp3;
// !4 = !{!1}
Metadata *Ops4[] = {N1};
OpenPOWER on IntegriCloud