Fix asan test failure

llvm-svn: 265891
diff --git a/llvm/unittests/ProfileData/InstrProfTest.cpp b/llvm/unittests/ProfileData/InstrProfTest.cpp
index 61779e7..24e2a4e 100644
--- a/llvm/unittests/ProfileData/InstrProfTest.cpp
+++ b/llvm/unittests/ProfileData/InstrProfTest.cpp
@@ -790,6 +790,8 @@
 
   // 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) {