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

Unified Diff: net/dns/dns_config_service_posix.cc

Issue 7859023: Merge 100078 - Fix usage error for libresolv - res_ninit on OSX requires res_ndestroy to close (Closed) Base URL: svn://svn.chromium.org/chrome/branches/874/src/
Patch Set: Created 9 years, 3 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 | tools/valgrind/memcheck/suppressions_mac.txt » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/dns/dns_config_service_posix.cc
===================================================================
--- net/dns/dns_config_service_posix.cc (revision 100315)
+++ net/dns/dns_config_service_posix.cc (working copy)
@@ -35,7 +35,11 @@
// Note: res_ninit in glibc always returns 0 and sets RES_INIT.
success_ = false;
}
+#if defined(OS_MACOSX)
+ res_ndestroy(&res);
+#else
res_nclose(&res);
+#endif
}
void OnReadFinished() OVERRIDE {
« no previous file with comments | « no previous file | tools/valgrind/memcheck/suppressions_mac.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698