From: Daniel Stenberg Date: Mon, 12 Aug 2024 09:42:48 +0000 (+0200) Subject: urldata: remove 'scratch' from the UrlState struct X-Git-Tag: curl-8_10_0~300 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f0a551814b0a083d33dd0d2b12a93b41d5ecb636;p=thirdparty%2Fcurl.git urldata: remove 'scratch' from the UrlState struct It is not used anywhere anymore Follow-up to e3905de8196d67b89df160 Closes #14500 --- diff --git a/lib/url.c b/lib/url.c index 5d483a396d..cd847899ee 100644 --- 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) { diff --git a/lib/urldata.h b/lib/urldata.h index b0cef6aa61..d8bff3c9ba 100644 --- a/lib/urldata.h +++ b/lib/urldata.h @@ -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