diff options
author | Daniel Stenberg <daniel@haxx.se> | 2017-05-09 12:47:49 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2017-05-10 12:55:36 +0200 |
commit | 31b39c40cf909d34f27dc655755f346482f57089 (patch) | |
tree | 4fcf5799aebdf1573b6789f1a19ef3ac8aa0e279 /lib/llist.c | |
parent | e9fd794a616c10bd0d017a76f8fdccaf4cc76851 (diff) | |
download | curl-31b39c40cf909d34f27dc655755f346482f57089.tar.gz |
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
Diffstat (limited to 'lib/llist.c')
-rw-r--r-- | lib/llist.c | 3 |
1 files changed, 2 insertions, 1 deletions
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 |