Skip to content
Snippets Groups Projects
Commit 5bc78cb7 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

Disable the DNS cache (by setting the timeout to 0) made libcurl leak

memory. Avery Fay brought the example code that proved this.
parent cdba92ac
No related branches found
No related tags found
No related merge requests found
......@@ -218,11 +218,13 @@ Curl_addrinfo *Curl_resolv(struct SessionHandle *data,
}
#endif
#if 0
/* If the host cache timeout is 0, we don't do DNS cach'ing
so fall through */
if (data->set.dns_cache_timeout == 0) {
return Curl_getaddrinfo(data, hostname, port, &bufp);
}
#endif
time(&now);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment