mirror of
https://github.com/curl/curl.git
synced 2026-06-03 00:44:14 +03:00
Disable the DNS cache (by setting the timeout to 0) made libcurl leak
memory. Avery Fay brought the example code that proved this.
This commit is contained in:
parent
cdba92ac3c
commit
5bc78cb724
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue