Commit 5fe145e4 authored by rdsmith@google.com's avatar rdsmith@google.com

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
parent 846ed9c3
......@@ -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;
}
}
......
......@@ -3571,13 +3571,6 @@
fun:_ZN7Browser16InitCommandStateEv
fun:_ZN7Browser*ENS_4TypeEP7Profile
}
{
bug_50583
Memcheck:Leak
fun:_Znw*
fun:_ZN64_GLOBAL__N_net_base_cookie_monster_unittest.cc_00000000_C9F6D94420AddKeyedCookieToListERKSsS1_RKN4base4TimeEPSt6vectorISt4pairISsPN3net13CookieMonster15CanonicalCookieEESaISC_EE
fun:_ZN3net55CookieMonsterTest_DontImportDuplicateCreationTimes_Test8TestBodyEv
}
{
bug_50630
Memcheck:Value4
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment