1
0
mirror of https://gitlab.xiph.org/xiph/icecast-common.git synced 2024-12-04 14:46:31 -05:00

Free tree if we fail to allocate root node.

svn path=/icecast/trunk/avl/; revision=10975
This commit is contained in:
Michael Smith 2006-03-07 19:22:29 +00:00
parent 8a87821bdc
commit 4dd3524428

View File

@ -70,6 +70,7 @@ avl_tree_new (avl_key_compare_fun_type compare_fun,
} else {
avl_node * root = avl_node_new((void *)NULL, (avl_node *) NULL);
if (!root) {
free (t);
return NULL;
} else {
t->root = root;