aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2001-09-18 15:30:38 +0000
committerDaniel Stenberg <daniel@haxx.se>2001-09-18 15:30:38 +0000
commit146413a53c1e7092602bcc14c70a7690dcd3cc21 (patch)
treefbb549da8320f8c8612aa9a7ab9ac3c74ab353aa /lib
parent437fd064c9b294de81b15972c40e8a1c5c0191d7 (diff)
the stuff formerly done in Curl_http_close is now done in Curl_close
Diffstat (limited to 'lib')
-rw-r--r--lib/url.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/url.c b/lib/url.c
index cfcac7322..81a238653 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -153,17 +153,21 @@ CURLcode Curl_close(struct SessionHandle *data)
Curl_SSL_Close_All(data);
#endif
+ if(data->state.auth_host)
+ free(data->state.auth_host);
+
if(data->change.proxy_alloc)
free(data->change.proxy);
+
if(data->change.referer_alloc)
free(data->change.referer);
+
if(data->change.url_alloc)
free(data->change.url);
if(data->state.headerbuff)
free(data->state.headerbuff);
-
if(data->set.cookiejar)
/* we have a "destination" for all the cookies to get dumped to */
Curl_cookie_output(data->cookies, data->set.cookiejar);
@@ -1762,7 +1766,6 @@ static CURLcode Connect(struct SessionHandle *data,
conn->protocol |= PROT_HTTP;
conn->curl_do = Curl_http;
conn->curl_done = Curl_http_done;
- conn->curl_close = Curl_http_close;
}
else if (strequal(conn->protostr, "HTTPS")) {
#ifdef USE_SSLEAY
@@ -1775,7 +1778,6 @@ static CURLcode Connect(struct SessionHandle *data,
conn->curl_do = Curl_http;
conn->curl_done = Curl_http_done;
conn->curl_connect = Curl_http_connect;
- conn->curl_close = Curl_http_close;
#else /* USE_SSLEAY */
failf(data, LIBCURL_NAME
@@ -1795,7 +1797,6 @@ static CURLcode Connect(struct SessionHandle *data,
conn->protocol |= PROT_GOPHER;
conn->curl_do = Curl_http;
conn->curl_done = Curl_http_done;
- conn->curl_close = Curl_http_close;
}
else if(strequal(conn->protostr, "FTP") ||
strequal(conn->protostr, "FTPS")) {
@@ -1827,7 +1828,6 @@ static CURLcode Connect(struct SessionHandle *data,
}
conn->curl_do = Curl_http;
conn->curl_done = Curl_http_done;
- conn->curl_close = Curl_http_close;
}
else {
conn->curl_do = Curl_ftp;