summaryrefslogtreecommitdiffstats
path: root/unittests/IR
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2013-01-23 08:33:05 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2013-01-23 08:33:05 +0000
commitd422e9f114ec11073a63e0fa9ecbfe3aeedf0fbb (patch)
tree389cad1ccd87e6110723a194cf6ecabf9cbbf4c6 /unittests/IR
parente82a5fae0309eee5a253e84b77f84525bdcbf111 (diff)
downloadexternal_llvm-d422e9f114ec11073a63e0fa9ecbfe3aeedf0fbb.zip
external_llvm-d422e9f114ec11073a63e0fa9ecbfe3aeedf0fbb.tar.gz
external_llvm-d422e9f114ec11073a63e0fa9ecbfe3aeedf0fbb.tar.bz2
IRTests/WaymarkTest.cpp: Fix in --vg-leak.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173239 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'unittests/IR')
-rw-r--r--unittests/IR/WaymarkTest.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/unittests/IR/WaymarkTest.cpp b/unittests/IR/WaymarkTest.cpp
index dd91704..cf7d76d 100644
--- a/unittests/IR/WaymarkTest.cpp
+++ b/unittests/IR/WaymarkTest.cpp
@@ -38,6 +38,7 @@ TEST(WaymarkTest, NativeArray) {
{
EXPECT_EQ(A, U->getUser());
}
+ delete A;
}
TEST(WaymarkTest, TwoBit) {
@@ -48,6 +49,7 @@ TEST(WaymarkTest, TwoBit) {
{
EXPECT_EQ(reinterpret_cast<User *>(Ue + 1), U->getUser());
}
+ free(many);
}
} // end anonymous namespace