--- 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);