summaryrefslogtreecommitdiffstats
path: root/llvm/unittests/ProfileData/SampleProfTest.cpp
diff options
context:
space:
mode:
authorEaswaran Raman <eraman@google.com>2016-03-03 23:55:41 +0000
committerEaswaran Raman <eraman@google.com>2016-03-03 23:55:41 +0000
commit75c21a9428de1854b2bf8caa83254a207b37c6ad (patch)
tree61ad3a36cdd4640f7712fda8f6151028a46ddc4c /llvm/unittests/ProfileData/SampleProfTest.cpp
parentb8627a89a63f4901cf60071140d4ddf33ce67aa5 (diff)
downloadbcm5719-llvm-75c21a9428de1854b2bf8caa83254a207b37c6ad.tar.gz
bcm5719-llvm-75c21a9428de1854b2bf8caa83254a207b37c6ad.zip
Fix memory leak in tests.
llvm-svn: 262674
Diffstat (limited to 'llvm/unittests/ProfileData/SampleProfTest.cpp')
-rw-r--r--llvm/unittests/ProfileData/SampleProfTest.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/unittests/ProfileData/SampleProfTest.cpp b/llvm/unittests/ProfileData/SampleProfTest.cpp
index 5ab4f56c6f7..9738e9763ca 100644
--- a/llvm/unittests/ProfileData/SampleProfTest.cpp
+++ b/llvm/unittests/ProfileData/SampleProfTest.cpp
@@ -133,6 +133,7 @@ struct SampleProfTest : ::testing::Test {
ASSERT_TRUE(isa<SampleProfileSummary>(PS));
SampleProfileSummary *SPS = cast<SampleProfileSummary>(PS);
VerifySummary(*SPS);
+ delete SPS;
}
};
OpenPOWER on IntegriCloud