commit | 00ea4a36d6fdf2953da7d41af1edf65548caa9f3 | [log] [tgz] |
---|---|---|
author | Jeffrey Yasskin <jyasskin@google.com> | Thu Feb 11 07:16:13 2010 +0000 |
committer | Jeffrey Yasskin <jyasskin@google.com> | Thu Feb 11 07:16:13 2010 +0000 |
tree | e857d3e42391e7daf3deb0f59017557354a9d1b2 | |
parent | da4e0d350c00dfa40a6e443c25660f3f13f676d4 [diff] [blame] |
Fix (harmless) memory leak found by memcheck. llvm-svn: 95862
diff --git a/llvm/unittests/ADT/StringMapTest.cpp b/llvm/unittests/ADT/StringMapTest.cpp index 3dcdc39..413f068 100644 --- a/llvm/unittests/ADT/StringMapTest.cpp +++ b/llvm/unittests/ADT/StringMapTest.cpp
@@ -191,6 +191,7 @@ testKeyFirst, testKeyFirst + testKeyLength, 1u); EXPECT_STREQ(testKey, entry->first()); EXPECT_EQ(1u, entry->second); + free(entry); } // Test insert() method.