aboutsummaryrefslogtreecommitdiff
path: root/lib/url.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2001-10-04 13:25:12 +0000
committerDaniel Stenberg <daniel@haxx.se>2001-10-04 13:25:12 +0000
commit5d9ae88f58349022ee437fdf4dfc9e3a7f755beb (patch)
treeeaa66a90d9abeb791b72a83f719636fb85266941 /lib/url.c
parent9d066935e5e4e0d7477520eeb6fd7b82ce6bebc2 (diff)
getaddrinfo() cleanups
Diffstat (limited to 'lib/url.c')
-rw-r--r--lib/url.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/lib/url.c b/lib/url.c
index 198170dce..ddbdc3b16 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -879,13 +879,8 @@ CURLcode Curl_disconnect(struct connectdata *conn)
if(conn->proto.generic)
free(conn->proto.generic);
-#ifdef ENABLE_IPV6
- if(conn->hostaddr) /* host name info */
- freeaddrinfo(conn->hostaddr);
-#else
if(conn->hostent_buf) /* host name info */
- free(conn->hostent_buf);
-#endif
+ Curl_freeaddrinfo(conn->hostent_buf);
if(conn->newurl)
free(conn->newurl);