diff options
Diffstat (limited to 'lib/url.c')
-rw-r--r-- | lib/url.c | 7 |
1 files changed, 1 insertions, 6 deletions
@@ -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); |