# HG changeset patch # User Matti Hamalainen # Date 1703051845 -7200 # Node ID bca32201868ea1f3d50a64ae0216bf2d49974987 # Parent 1db55c733f7deef867dda5c3c48879d7f2747f90 Plug another memory leak in tests. diff -r 1db55c733f7d -r bca32201868e tests.c --- a/tests.c Wed Dec 20 07:51:04 2023 +0200 +++ b/tests.c Wed Dec 20 07:57:25 2023 +0200 @@ -677,9 +677,11 @@ test_linked_list_validity(list, 0, 1); // Delete - th_llist_delete_node(&list, list); + node = list; + th_llist_delete_node(&list, node); test_linked_list_length(list, nnodes - 1); test_linked_list_validity(list, 1, 1); + th_free(node); out: th_llist_free(list);