Commit bc7a3aa8 authored by Chris Müller's avatar Chris Müller

lib: fix memory leak in double_linked_lists.

parent b52f8421
......@@ -63,6 +63,8 @@ cry_list_free(struct CryList* list, cry_free_funptr handler)
cry_free(tmp);
}
cry_free(list);
}
......
......@@ -50,14 +50,15 @@ struct RBNode* rb_tree_lookup(struct RBTree* tree, const_pointer entry)
struct RBNode* rb_tree_insert(struct RBTree* tree, const_pointer entry);
struct RBNode* rb_tree_remove(struct RBTree* tree, const_pointer entry);
struct RBNode* rb_node_new(enum RBNodeColor color, struct RBNode* parent, const_pointer entry);
void rb_node_free(struct RBNode* node, cry_free_funptr fun);
struct RBNode* rb_node_first(struct RBTree* tree);
struct RBNode* rb_node_last(struct RBTree* tree);
struct RBNode* rb_node_next(struct RBNode* node);
struct RBNode* rb_node_prev(struct RBNode* node);
struct RBNode* rb_node_new(enum RBNodeColor color, struct RBNode* parent, const_pointer entry);
void rb_node_free(struct RBNode* node, cry_free_funptr fun);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment