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
This commit is contained in:
Daniel Stenberg 2023-03-27 15:54:58 +02:00
parent 843b3baa3e
commit 5fec927374
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -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! */