1.1 --- a/test/list_tests.c Tue Feb 21 01:13:17 2012 +0100 1.2 +++ b/test/list_tests.c Fri Feb 24 15:53:50 2012 +0100 1.3 @@ -60,7 +60,6 @@ 1.4 UCX_TEST_ASSERT(strncmp(list->next->data, " World!", 7) == 0, "failed") 1.5 UCX_TEST_ASSERT(list->next->next == NULL, "failed") 1.6 1.7 - ucx_list_free(list2); 1.8 ucx_list_free(list); 1.9 1.10 UCX_TEST_END 1.11 @@ -140,14 +139,14 @@ 1.12 UCX_TEST_ASSERT(ucx_list_equals(list, copy, cmp_string, NULL), "failed") 1.13 UCX_TEST_ASSERT(hello != copy->data, "first element is no copy") 1.14 UCX_TEST_ASSERT(world != copy->next->data, "second element is no copy") 1.15 - 1.16 + 1.17 free(copy->next->data); 1.18 free(copy->data); 1.19 1.20 free(world); 1.21 free(hello); 1.22 - free(list); 1.23 - free(copy); 1.24 + ucx_list_free(list); 1.25 + ucx_list_free(copy); 1.26 1.27 UCX_TEST_END 1.28 }