test/list_tests.c

changeset 211
07a284486fa1
parent 192
1e51558b9d09
child 212
c766c423dee6
--- 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);

mercurial