aboutsummaryrefslogtreecommitdiff
path: root/lib/hostip.h
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-11-26 09:41:54 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-11-26 09:41:54 +0000
commit7df5677b4677eabbb8d1477171f3c9bf0028f08d (patch)
tree6dff57ce9e751cfb7e6858b4a2fc89a67d281604 /lib/hostip.h
parent2e71876b28a83fbeaa9f7feb5896a7e35297ad74 (diff)
fixed Curl_freeaddrinfo() to only free addrinfo, and added Curl_freednsinfo()
for freeing single dns cache entries
Diffstat (limited to 'lib/hostip.h')
-rw-r--r--lib/hostip.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/hostip.h b/lib/hostip.h
index 78a17e2e8..169ed17c9 100644
--- a/lib/hostip.h
+++ b/lib/hostip.h
@@ -65,7 +65,10 @@ struct Curl_dns_entry *Curl_resolv(struct SessionHandle *data,
void Curl_scan_cache_used(void *user, void *ptr);
/* free name info */
-void Curl_freeaddrinfo(void *freethis);
+void Curl_freeaddrinfo(Curl_addrinfo *freeaddr);
+
+/* free cached name info */
+void Curl_freednsinfo(void *freethis);
#ifdef MALLOCDEBUG
void curl_freeaddrinfo(struct addrinfo *freethis,