Index: net/base/cookie_monster.cc |
diff --git a/net/base/cookie_monster.cc b/net/base/cookie_monster.cc |
index 795d3ea8f65dc3fb3672a5d2a7a9ffa177fa2b23..8b0f5919279ddbc63a99ae2ff33acff4c8219ead 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; |
} |
} |