summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authoragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-07 15:31:33 +0000
committeragl@chromium.org <agl@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-01-07 15:31:33 +0000
commit4abb1d34eb175e9d05c26445df9360837a470437 (patch)
treee789fdff2f42c1f0033e7258bec5dae1cdcbd6a6 /net
parent5421aa26a528bd301ae9092b5edb13b6546afc2c (diff)
downloadchromium_src-4abb1d34eb175e9d05c26445df9360837a470437.zip
chromium_src-4abb1d34eb175e9d05c26445df9360837a470437.tar.gz
chromium_src-4abb1d34eb175e9d05c26445df9360837a470437.tar.bz2
net: fix leak in SSLHostInfo's DNS request.
I'm too used to callbacks which delete themselves and forgot to delete it myself in r70631. BUG=68820 TEST=valgrind git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70737 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net')
-rw-r--r--net/socket/ssl_host_info.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/socket/ssl_host_info.cc b/net/socket/ssl_host_info.cc
index 7a8209a..1fcc053 100644
--- a/net/socket/ssl_host_info.cc
+++ b/net/socket/ssl_host_info.cc
@@ -220,6 +220,7 @@ void SSLHostInfo::VerifyCallback(int rv) {
void SSLHostInfo::DnsComplete(int rv) {
dns_handle_ = DnsRRResolver::kInvalidHandle;
+ delete dns_callback_;
dns_callback_ = NULL;
const base::TimeTicks now = base::TimeTicks::Now();