if there's a cookiehost allocated, free that too

This commit is contained in:
Daniel Stenberg 2003-04-30 19:58:36 +00:00
parent 37d1e9351e
commit bc77bf217f
1 changed files with 2 additions and 0 deletions

View File

@ -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);