diff options
author | rdsmith@google.com <rdsmith@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-29 20:36:48 +0000 |
---|---|---|
committer | rdsmith@google.com <rdsmith@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-29 20:36:48 +0000 |
commit | 5fe145e46185045ee9d6b2523c8c852197b32031 (patch) | |
tree | 012bd5828232bbb18c5b4a9d012763e2ab631225 /net/base/cookie_monster.cc | |
parent | 846ed9c3c2fae4108f1f337b82cde8687f6d9f89 (diff) | |
download | chromium_src-5fe145e46185045ee9d6b2523c8c852197b32031.zip chromium_src-5fe145e46185045ee9d6b2523c8c852197b32031.tar.gz chromium_src-5fe145e46185045ee9d6b2523c8c852197b32031.tar.bz2 |
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
Diffstat (limited to 'net/base/cookie_monster.cc')
-rw-r--r-- | net/base/cookie_monster.cc | 3 |
1 files changed, 3 insertions, 0 deletions
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; } } |