fix missing free() in test_tree_add_duplicate_root

Sun, 06 Oct 2024 12:33:57 +0200

author
Mike Becker <universe@uap-core.de>
date
Sun, 06 Oct 2024 12:33:57 +0200
changeset 911
db829e54539e
parent 910
5c2af036103f
child 912
9533fc293aea

fix missing free() in test_tree_add_duplicate_root

tests/test_tree.c file | annotate | diff | comparison | revisions
--- a/tests/test_tree.c	Sun Oct 06 12:32:28 2024 +0200
+++ b/tests/test_tree.c	Sun Oct 06 12:33:57 2024 +0200
@@ -1203,6 +1203,7 @@
         CX_TEST_ASSERT(result == 0);
         CX_TEST_ASSERT(root.children == node);
         CX_TEST_ASSERT(node->parent == &root);
+        free(node);
     }
 }
 

mercurial