From b4be97fb677699282e13944d7fbdedc577ea3f5f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stefan=20B=C3=BChler?= Date: Tue, 17 Mar 2015 09:26:36 +0100 Subject: move Curl_share_lock and ref counting into Curl_fetch_addr --- lib/hostip.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'lib/hostip.h') 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, -- cgit v1.2.3