diff --git a/unittests/IR/WaymarkTest.cpp b/unittests/IR/WaymarkTest.cpp index dd91704d137..cf7d76dffc9 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