From 5fe145e46185045ee9d6b2523c8c852197b32031 Mon Sep 17 00:00:00 2001 From: "rdsmith@google.com" Date: Thu, 29 Jul 2010 20:36:48 +0000 Subject: Recover cookies thrown away because of duplicate creation times. BUG=50583 TEST=Saw bug in heapcheck, made change, saw bug dissapear. Review URL: http://codereview.chromium.org/2856069 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54181 0039d316-1c4b-4281-b951-d872f2087c98 --- net/base/cookie_monster.cc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'net/base/cookie_monster.cc') diff --git a/net/base/cookie_monster.cc b/net/base/cookie_monster.cc index 795d3ea8..8b0f591 100644 --- a/net/base/cookie_monster.cc +++ b/net/base/cookie_monster.cc @@ -203,6 +203,9 @@ void CookieMonster::InitStore() { it->second->Name().c_str(), it->first.c_str(), it->second->Path().c_str()); + // We've been given ownership of the cookie and are throwing it + // away; reclaim the space. + delete it->second; } } -- cgit v1.1