diff options
author | simonjam@chromium.org <simonjam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-07 07:37:55 +0000 |
---|---|---|
committer | simonjam@chromium.org <simonjam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-07 07:37:55 +0000 |
commit | b9ea490c1be3d8c2d8b3832c450950419e59a418 (patch) | |
tree | 1d3a680f0e85c4792b58680d21552298e2d96df6 /net/http/http_pipelined_host_pool_unittest.cc | |
parent | 24e33a05593f6c224f240f006a555bd901d3b1bd (diff) | |
download | chromium_src-b9ea490c1be3d8c2d8b3832c450950419e59a418.zip chromium_src-b9ea490c1be3d8c2d8b3832c450950419e59a418.tar.gz chromium_src-b9ea490c1be3d8c2d8b3832c450950419e59a418.tar.bz2 |
Fix leak in HttpPipelinedHostPoolTest.
BUG=None
TEST=net_unittests under valgrind
Review URL: http://codereview.chromium.org/8838001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113360 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/http/http_pipelined_host_pool_unittest.cc')
-rw-r--r-- | net/http/http_pipelined_host_pool_unittest.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/http/http_pipelined_host_pool_unittest.cc b/net/http/http_pipelined_host_pool_unittest.cc index 457f101..db47064 100644 --- a/net/http/http_pipelined_host_pool_unittest.cc +++ b/net/http/http_pipelined_host_pool_unittest.cc @@ -191,6 +191,7 @@ TEST_F(HttpPipelinedHostPoolTest, PopulatesServerProperties) { pool_->OnHostDeterminedCapability(host_, PIPELINE_CAPABLE); EXPECT_EQ(PIPELINE_CAPABLE, http_server_properties_->GetPipelineCapability(host_->origin())); + delete host_; // Must manually delete, because it's never added to |pool_|. } } // anonymous namespace |