fix(search tree): fixed memory leak issue

This commit is contained in:
Mineplay 2025-08-29 13:26:07 -05:00
parent 4e57a165fd
commit c8c2d5623d

View file

@ -114,6 +114,7 @@ FledastyError fledasty_binary_search_tree_##name##_insert(FledastyBinarySearchTr
while (new_node->parent == NULL) { \
if (compare_key_function(key, current_node->key)) { \
current_node->value = value; \
hallocy_free(new_node); \
return FLEDASTY_ERROR_VALUE_REPLACED; \
} \
\