summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 15677f3)
raw | patch | inline | side by side (parent: 15677f3)
author | Florian Forster <octo@collectd.org> | |
Sun, 27 May 2012 09:10:56 +0000 (11:10 +0200) | ||
committer | Florian Forster <octo@collectd.org> | |
Sun, 27 May 2012 09:10:56 +0000 (11:10 +0200) |
src/utils_avltree.c | patch | blob | history |
diff --git a/src/utils_avltree.c b/src/utils_avltree.c
index 3e258e95d8c6834271823cab5aa5cddfc3a4845a..12310d3fa771d528fabc5ac313f76d42ed71aef6 100644 (file)
--- a/src/utils_avltree.c
+++ b/src/utils_avltree.c
void c_avl_destroy (c_avl_tree_t *t)
{
+ if (t == NULL)
+ return;
free_node (t->root);
free (t);
}