From d422e9f114ec11073a63e0fa9ecbfe3aeedf0fbb Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Wed, 23 Jan 2013 08:33:05 +0000 Subject: IRTests/WaymarkTest.cpp: Fix in --vg-leak. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173239 91177308-0d34-0410-b5e6-96231b3b80d8 --- unittests/IR/WaymarkTest.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'unittests/IR/WaymarkTest.cpp') diff --git a/unittests/IR/WaymarkTest.cpp b/unittests/IR/WaymarkTest.cpp index dd91704d13..cf7d76dffc 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(Ue + 1), U->getUser()); } + free(many); } } // end anonymous namespace -- cgit v1.2.3