From: Daniel Stenberg Date: Mon, 27 Mar 2023 13:54:58 +0000 (+0200) Subject: url: remove call to Curl_llist_destroy in Curl_close X-Git-Tag: curl-8_1_0~296 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5fec927374e4d9553205d861f2dcb39ec78002cc;p=thirdparty%2Fcurl.git url: remove call to Curl_llist_destroy in Curl_close A list that is created with a NULL "destructor" does not need to be destroyed. Not calling it is faster than calling it. Closes #10846 --- diff --git a/lib/url.c b/lib/url.c index c1fdd1d678..c4844c95de 100644 --- a/lib/url.c +++ b/lib/url.c @@ -371,11 +371,6 @@ CURLcode Curl_close(struct Curl_easy **datap) data->multi_easy = NULL; } - /* Destroy the timeout list that is held in the easy handle. It is - /normally/ done by curl_multi_remove_handle() but this is "just in - case" */ - Curl_llist_destroy(&data->state.timeoutlist, NULL); - data->magic = 0; /* force a clear AFTER the possibly enforced removal from the multi handle, since that function uses the magic field! */