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

Unified Diff: net/dns/async_host_resolver.cc

Issue 8918029: Silence a (spurious) use after free message (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years 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/async_host_resolver.cc
diff --git a/net/dns/async_host_resolver.cc b/net/dns/async_host_resolver.cc
index ff93c3e52f794bc09719bbda2179e43a8f96ba97..6f6552bcfa684a7c680c9076ef19733c45e9918c 100644
--- a/net/dns/async_host_resolver.cc
+++ b/net/dns/async_host_resolver.cc
@@ -397,8 +397,8 @@ void AsyncHostResolver::OnDnsRequestComplete(
requestlist_map_.erase(rit);
// Cleanup |dns_req| and start a new one if there are pending requests.
- delete dns_req;
dns_requests_.remove(dns_req);
+ delete dns_req;
ProcessPending();
}
« 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