summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoridanan@chromium.org <idanan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-16 20:41:00 +0000
committeridanan@chromium.org <idanan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-07-16 20:41:00 +0000
commit3e4d3e73750b959d949d8d040ec71c7634cc11a8 (patch)
tree8c9ca56dc3fa08bc7b11e19df3fd7bb2e6582371
parent621124d547543b997e7c4adaa38d851a168e68c0 (diff)
downloadchromium_src-3e4d3e73750b959d949d8d040ec71c7634cc11a8.zip
chromium_src-3e4d3e73750b959d949d8d040ec71c7634cc11a8.tar.gz
chromium_src-3e4d3e73750b959d949d8d040ec71c7634cc11a8.tar.bz2
Fix Valgrind Linux leak
Review URL: http://codereview.chromium.org/155645 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20894 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r--chrome/browser/privacy_blacklist/blacklist_unittest.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/chrome/browser/privacy_blacklist/blacklist_unittest.cc b/chrome/browser/privacy_blacklist/blacklist_unittest.cc
index 9516c11..f7648b5 100644
--- a/chrome/browser/privacy_blacklist/blacklist_unittest.cc
+++ b/chrome/browser/privacy_blacklist/blacklist_unittest.cc
@@ -73,6 +73,7 @@ TEST(BlacklistTest, Generic) {
EXPECT_EQ(Blacklist::kBlockByType|Blacklist::kDontPersistCookies,
match->attributes());
EXPECT_EQ(1U, match->entries().size());
+ delete match;
}
match = blacklist.findMatch(GURL("http://www.site.com/bad/url"));
@@ -82,6 +83,7 @@ TEST(BlacklistTest, Generic) {
Blacklist::kBlockByType|Blacklist::kDontPersistCookies,
match->attributes());
EXPECT_EQ(2U, match->entries().size());
+ delete match;
}
match = blacklist.findMatch(GURL("http://www.site.com/anonymous"));
@@ -90,6 +92,7 @@ TEST(BlacklistTest, Generic) {
EXPECT_EQ(Blacklist::kBlockByType|Blacklist::kDontPersistCookies,
match->attributes());
EXPECT_EQ(1U, match->entries().size());
+ delete match;
}
match = blacklist.findMatch(GURL("http://www.site.com/anonymous/folder"));
@@ -98,6 +101,7 @@ TEST(BlacklistTest, Generic) {
EXPECT_EQ(Blacklist::kBlockByType|Blacklist::kDontPersistCookies,
match->attributes());
EXPECT_EQ(1U, match->entries().size());
+ delete match;
}
match = blacklist.findMatch(
@@ -108,6 +112,7 @@ TEST(BlacklistTest, Generic) {
Blacklist::kBlockByType|Blacklist::kDontPersistCookies,
match->attributes());
EXPECT_EQ(2U, match->entries().size());
+ delete match;
}
// StripCookieExpiry Tests