aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2004-05-24 08:19:37 +0000
committerDaniel Stenberg <daniel@haxx.se>2004-05-24 08:19:37 +0000
commit85b2056dc7d758e679a19e2a4afe0c3447fb2b5c (patch)
treeb07135fb2585ab137c595f09c9bbba9a8006007d /lib
parent94ca911dc12b9093e5e63b69daccca972806f00d (diff)
only idn_free() if built with libidn
Diffstat (limited to 'lib')
-rw-r--r--lib/url.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/url.c b/lib/url.c
index de7601ebd..13ce60a15 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -1391,6 +1391,7 @@ CURLcode Curl_disconnect(struct connectdata *conn)
Curl_safefree(conn->host.rawalloc); /* host name buffer */
Curl_safefree(conn->proxy.rawalloc); /* proxy name buffer */
+#ifdef USE_LIBIDN
if(conn->host.encalloc)
idn_free(conn->host.encalloc); /* encoded host name buffer, must be freed
with idn_free() since this was allocated
@@ -1399,6 +1400,7 @@ CURLcode Curl_disconnect(struct connectdata *conn)
idn_free(conn->proxy.encalloc); /* encoded proxy name buffer, must be
freed with idn_free() since this was
allocated by libidn */
+#endif
Curl_SSL_Close(conn);
/* close possibly still open sockets */