This commit is contained in:
2025-12-09 09:59:22 +01:00
parent 7c3df62d86
commit 02e008c03a
3 changed files with 2 additions and 1 deletions
+2 -1
View File
@@ -56,6 +56,7 @@ TreeNode *addToTreeRec(TreeNode *currentNode, TreeNode *newNode, CompareFctType
{
return newNode;
}
// dosn't consider is Duplicate != Null upon root Null
else
{
return currentNode;
@@ -140,7 +141,7 @@ void clearNode(TreeNode *node)
// printf("left & right = Null\n");
printf("node = %u\n", &node);
// printf("node = %u\n", _ADDRESSOF(node));
// free(node);
free(node);
// printf("node = %d\n", node);
node = NULL;
printf("node = %u\n", &node);
BIN
View File
Binary file not shown.
Binary file not shown.