1.1 --- a/src/list.c Tue Jan 23 19:23:34 2018 +0100 1.2 +++ b/src/list.c Wed May 02 16:14:40 2018 +0200 1.3 @@ -77,6 +77,7 @@ 1.4 } 1.5 1.6 void ucx_list_free_content(UcxList* list, ucx_destructor destr) { 1.7 + if (!destr) destr = free; 1.8 while (list != NULL) { 1.9 destr(list->data); 1.10 list = list->next;