diff options
author | Jeffrey Yasskin <jyasskin@google.com> | 2010-02-11 07:16:13 +0000 |
---|---|---|
committer | Jeffrey Yasskin <jyasskin@google.com> | 2010-02-11 07:16:13 +0000 |
commit | d8735356a36fb04dfcfd9520f9785c0c3739b4a1 (patch) | |
tree | 7fc6313703939049392b9f717b9c9b33d5595dab | |
parent | 8b0f7a7d8627392c8faae3801cc91689406960cf (diff) | |
download | external_llvm-d8735356a36fb04dfcfd9520f9785c0c3739b4a1.zip external_llvm-d8735356a36fb04dfcfd9520f9785c0c3739b4a1.tar.gz external_llvm-d8735356a36fb04dfcfd9520f9785c0c3739b4a1.tar.bz2 |
Fix (harmless) memory leak found by memcheck.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@95862 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | unittests/ADT/StringMapTest.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/unittests/ADT/StringMapTest.cpp b/unittests/ADT/StringMapTest.cpp index 3dcdc39..413f068 100644 --- a/unittests/ADT/StringMapTest.cpp +++ b/unittests/ADT/StringMapTest.cpp @@ -191,6 +191,7 @@ TEST_F(StringMapTest, StringMapEntryTest) { testKeyFirst, testKeyFirst + testKeyLength, 1u); EXPECT_STREQ(testKey, entry->first()); EXPECT_EQ(1u, entry->second); + free(entry); } // Test insert() method. |