]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
urldata: remove 'scratch' from the UrlState struct
authorDaniel Stenberg <daniel@haxx.se>
Mon, 12 Aug 2024 09:42:48 +0000 (11:42 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 12 Aug 2024 10:55:20 +0000 (12:55 +0200)
It is not used anywhere anymore

Follow-up to e3905de8196d67b89df160

Closes #14500

lib/url.c
lib/urldata.h

index 5d483a396d9f576de1b31bdb6fb2131010ba942b..cd847899ee8eab3da80d24496770c3cee79eb89f 100644 (file)
--- a/lib/url.c
+++ b/lib/url.c
@@ -266,7 +266,6 @@ CURLcode Curl_close(struct Curl_easy **datap)
   /* Close down all open SSL info and sessions */
   Curl_ssl_close_all(data);
   Curl_safefree(data->state.first_host);
-  Curl_safefree(data->state.scratch);
   Curl_ssl_free_certinfo(data);
 
   if(data->state.referer_alloc) {
index b0cef6aa61e8054f3e19dc9327709c84c1044f43..d8bff3c9badb71ca3b0c7b56dd7145ab3a9e5a83 100644 (file)
@@ -1238,7 +1238,6 @@ struct UrlState {
   struct Curl_ssl_session *session; /* array of 'max_ssl_sessions' size */
   long sessionage;                  /* number of the most recent session */
   int os_errno;  /* filled in with errno whenever an error occurs */
-  char *scratch; /* huge buffer[set.buffer_size*2] for upload CRLF replacing */
   long followlocation; /* redirect counter */
   int requests; /* request counter: redirects + authentication retakes */
 #ifdef HAVE_SIGNAL