test/list_tests.c

changeset 30
23bb65cbf7a4
parent 27
22644e2572bc
child 33
9c219a62070d
--- a/test/list_tests.c	Tue Feb 21 01:13:17 2012 +0100
+++ b/test/list_tests.c	Fri Feb 24 15:53:50 2012 +0100
@@ -60,7 +60,6 @@
     UCX_TEST_ASSERT(strncmp(list->next->data, " World!", 7) == 0, "failed")
     UCX_TEST_ASSERT(list->next->next == NULL, "failed")
     
-    ucx_list_free(list2);
     ucx_list_free(list);
     
     UCX_TEST_END
@@ -140,14 +139,14 @@
     UCX_TEST_ASSERT(ucx_list_equals(list, copy, cmp_string, NULL), "failed")
     UCX_TEST_ASSERT(hello != copy->data, "first element is no copy")
     UCX_TEST_ASSERT(world != copy->next->data, "second element is no copy")
-
+            
     free(copy->next->data);
     free(copy->data);
 
     free(world);
     free(hello);
-    free(list);
-    free(copy);
+    ucx_list_free(list);
+    ucx_list_free(copy);
     
     UCX_TEST_END
 }

mercurial