diff options
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 |