aboutsummaryrefslogtreecommitdiff
path: root/lib/url.c
diff options
context:
space:
mode:
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);