diff --git a/data_structures/binary_trees/red_black_tree.c b/data_structures/binary_trees/red_black_tree.c index 6885122664..b3851209fe 100644 --- a/data_structures/binary_trees/red_black_tree.c +++ b/data_structures/binary_trees/red_black_tree.c @@ -20,6 +20,7 @@ Node *newNode(int val, Node *par) create->left = NULL; create->right = NULL; create->color = 1; + return create; } // Check if the node is the leaf