From 31b39c40cf909d34f27dc655755f346482f57089 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Tue, 9 May 2017 12:47:49 +0200 Subject: multi: use a fixed array of timers instead of malloc ... since the total amount is low this is faster, easier and reduces memory overhead. Also, Curl_expire_done() can now mark an expire timeout as done so that it never times out. Closes #1472 --- lib/llist.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lib/llist.c') diff --git a/lib/llist.c b/lib/llist.c index 06cebb971..4bb0a51b8 100644 --- a/lib/llist.c +++ b/lib/llist.c @@ -122,7 +122,8 @@ Curl_llist_remove(struct curl_llist *list, struct curl_llist_element *e, --list->size; /* call the dtor() last for when it actually frees the 'e' memory itself */ - list->dtor(user, ptr); + if(list->dtor) + list->dtor(user, ptr); } void -- cgit v1.2.3