[llvm] r265891 - Fix asan test failure

Xinliang David Li via llvm-commits llvm-commits at lists.llvm.org
Sat Apr 9 22:31:32 PDT 2016


Author: davidxl
Date: Sun Apr 10 00:31:29 2016
New Revision: 265891

URL: http://llvm.org/viewvc/llvm-project?rev=265891&view=rev
Log:
Fix asan test failure

Modified:
    llvm/trunk/unittests/ProfileData/InstrProfTest.cpp

Modified: llvm/trunk/unittests/ProfileData/InstrProfTest.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/unittests/ProfileData/InstrProfTest.cpp?rev=265891&r1=265890&r2=265891&view=diff
==============================================================================
--- llvm/trunk/unittests/ProfileData/InstrProfTest.cpp (original)
+++ llvm/trunk/unittests/ProfileData/InstrProfTest.cpp Sun Apr 10 00:31:29 2016
@@ -790,6 +790,8 @@ TEST_P(MaybeSparseInstrProfTest, runtime
 
   // callee5 does not have a mapped value -- default to 0.
   ASSERT_EQ(VD_0[4].Value, 0ULL);
+  finalizeValueProfRuntimeRecord(&RTRecord);
+  free(VPData);
 }
 
 TEST_P(MaybeSparseInstrProfTest, get_max_function_count) {




More information about the llvm-commits mailing list