Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(444)

Unified Diff: net/dns/dns_client.cc

Issue 10878016: [net/dns] Fix leak of DnsSession in DnsClientImpl. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync Created 8 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/dns/dns_client.cc
diff --git a/net/dns/dns_client.cc b/net/dns/dns_client.cc
index 859fc274dfe086af025bc767ce53612e5e9bfe2f..b9c2279a140c2635dc1eb8120ee3fa0f01e86d2e 100644
--- a/net/dns/dns_client.cc
+++ b/net/dns/dns_client.cc
@@ -25,7 +25,7 @@ class DnsClientImpl : public DnsClient {
virtual void SetConfig(const DnsConfig& config) OVERRIDE {
factory_.reset();
- session_.release();
+ session_ = NULL;
if (config.IsValid()) {
session_ = new DnsSession(config,
ClientSocketFactory::GetDefaultFactory(),
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698