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:
parent
843b3baa3e
commit
5fec927374
@ -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! */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user