IRTests/WaymarkTest.cpp: Fix in --vg-leak.
authorNAKAMURA Takumi <geek4civic@gmail.com>
Wed, 23 Jan 2013 08:33:05 +0000 (08:33 +0000)
committerNAKAMURA Takumi <geek4civic@gmail.com>
Wed, 23 Jan 2013 08:33:05 +0000 (08:33 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@173239 91177308-0d34-0410-b5e6-96231b3b80d8

unittests/IR/WaymarkTest.cpp

index dd91704d137e16db0aef07e34cafcf41089e3045..cf7d76dffc978ed3e2a778634f513bcb9a739807 100644 (file)
@@ -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