diff -r 6bdb04d87236 -r 07a284486fa1 test/list_tests.c --- a/test/list_tests.c Thu Oct 15 16:52:53 2015 +0200 +++ b/test/list_tests.c Wed Oct 21 16:32:30 2015 +0200 @@ -340,8 +340,8 @@ UCX_TEST_ASSERT(world != copy->next->data, "second element is no copy"); UCX_TEST_END - free(copy->next->data); - free(copy->data); + + ucx_list_free_contents(copy, free); free(world); free(hello);