# HG changeset patch # User Matti Hamalainen # Date 1578249975 -7200 # Node ID 3c1cb0f39703a4016f0a49d2c3e92e7028c54db7 # Parent cc6d8d47dbc2aa7fe8fe16d2895a484a2c3f0b82 OOoops. Use th_llist_free_func_node() instead of th_llist_free_func(). Freeing those linked list items now actually works. diff -r cc6d8d47dbc2 -r 3c1cb0f39703 sidlib.c --- a/sidlib.c Sun Jan 05 20:45:12 2020 +0200 +++ b/sidlib.c Sun Jan 05 20:46:15 2020 +0200 @@ -558,8 +558,8 @@ { if (dbh != NULL) { - th_llist_free_func((th_llist_t *) dbh->nodes, - (void (*)(void *)) sidlib_sldb_node_free); + th_llist_free_func_node((th_llist_t *) dbh->nodes, + (void (*)(th_llist_t *)) sidlib_sldb_node_free); dbh->nodes = NULL; dbh->nnodes = 0; @@ -689,8 +689,8 @@ { if (dbh != NULL) { - th_llist_free_func((th_llist_t *) dbh->nodes, - (void (*)(void *)) sidlib_stildb_node_free); + th_llist_free_func_node((th_llist_t *) dbh->nodes, + (void (*)(th_llist_t *)) sidlib_stildb_node_free); dbh->nodes = NULL; dbh->nnodes = 0;