]> granicus.if.org Git - curl/commitdiff
if there's a cookiehost allocated, free that too
authorDaniel Stenberg <daniel@haxx.se>
Wed, 30 Apr 2003 19:58:36 +0000 (19:58 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 30 Apr 2003 19:58:36 +0000 (19:58 +0000)
lib/url.c

index 1cd493cbc2e1442c216e0ab69b8c9b5d89761b5f..e017114139982d09f8691652a4f29e282e79f2da 100644 (file)
--- a/lib/url.c
+++ b/lib/url.c
@@ -1217,6 +1217,8 @@ CURLcode Curl_disconnect(struct connectdata *conn)
     free(conn->allocptr.cookie);
   if(conn->allocptr.host)
     free(conn->allocptr.host);
+  if(conn->allocptr.cookiehost)
+    free(conn->allocptr.cookiehost);
 
   if(conn->proxyhost)
     free(conn->proxyhost);