[llvm-commits] [llvm] r173239 - /llvm/trunk/unittests/IR/WaymarkTest.cpp
NAKAMURA Takumi
geek4civic at gmail.com
Wed Jan 23 00:33:05 PST 2013
Author: chapuni
Date: Wed Jan 23 02:33:05 2013
New Revision: 173239
URL: http://llvm.org/viewvc/llvm-project?rev=173239&view=rev
Log:
IRTests/WaymarkTest.cpp: Fix in --vg-leak.
Modified:
llvm/trunk/unittests/IR/WaymarkTest.cpp
Modified: llvm/trunk/unittests/IR/WaymarkTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/IR/WaymarkTest.cpp?rev=173239&r1=173238&r2=173239&view=diff
==============================================================================
--- llvm/trunk/unittests/IR/WaymarkTest.cpp (original)
+++ llvm/trunk/unittests/IR/WaymarkTest.cpp Wed Jan 23 02:33:05 2013
@@ -38,6 +38,7 @@
{
EXPECT_EQ(A, U->getUser());
}
+ delete A;
}
TEST(WaymarkTest, TwoBit) {
@@ -48,6 +49,7 @@
{
EXPECT_EQ(reinterpret_cast<User *>(Ue + 1), U->getUser());
}
+ free(many);
}
} // end anonymous namespace
More information about the llvm-commits
mailing list