tests/test_tree.c

changeset 1319
aa1f580f8f59
parent 1318
12fa1d37fe48
--- a/tests/test_tree.c	Thu May 15 16:02:54 2025 +0200
+++ b/tests/test_tree.c	Thu May 15 16:12:09 2025 +0200
@@ -1503,7 +1503,7 @@
         CX_TEST_ASSERT(node != NULL);
         CX_TEST_ASSERT(node->parent == NULL);
         CX_TEST_ASSERT(node->children == NULL);
-        cxFree(cxDefaultAllocator, node);
+        cxFreeDefault(node);
         node = NULL;
         size_t added = cx_tree_add_array(
                 "/", 1, sizeof(const char *),
@@ -1516,7 +1516,7 @@
         CX_TEST_ASSERT(node != NULL);
         CX_TEST_ASSERT(node->parent == NULL);
         CX_TEST_ASSERT(node->children == NULL);
-        cxFree(cxDefaultAllocator, node);
+        cxFreeDefault(node);
     }
 }
 
@@ -1535,7 +1535,7 @@
         CX_TEST_ASSERT(result == 0);
         CX_TEST_ASSERT(root.children == node);
         CX_TEST_ASSERT(node->parent == &root);
-        cxFree(cxDefaultAllocator, node);
+        cxFreeDefault(node);
     }
 }
 

mercurial