diff options
author | Stefan Bühler <buehler@teamviewer.com> | 2015-03-17 09:26:36 +0100 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2015-04-03 16:46:14 +0200 |
commit | b4be97fb677699282e13944d7fbdedc577ea3f5f (patch) | |
tree | d8e821a7c1bc3c928260792197c48c10b0e61990 /lib/hostip.h | |
parent | 0db831976e4b2d2553c8cd9aaae492970d830f57 (diff) | |
download | curl-b4be97fb677699282e13944d7fbdedc577ea3f5f.tar.gz |
move Curl_share_lock and ref counting into Curl_fetch_addr
Diffstat (limited to 'lib/hostip.h')
-rw-r--r-- | lib/hostip.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/hostip.h b/lib/hostip.h index 0e2e2cf7f..a79b89a44 100644 --- a/lib/hostip.h +++ b/lib/hostip.h @@ -174,6 +174,9 @@ const char *Curl_printable_address(const Curl_addrinfo *ip, * Curl_fetch_addr() fetches a 'Curl_dns_entry' already in the DNS cache. * * Returns the Curl_dns_entry entry pointer or NULL if not in the cache. + * + * The returned data *MUST* be "unlocked" with Curl_resolv_unlock() after + * use, or we'll leak memory! */ struct Curl_dns_entry * Curl_fetch_addr(struct connectdata *conn, |