]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
Size of root node not substracted from tree.
authorYuri Schaeffer <yuri@nlnetlabs.nl>
Thu, 23 Apr 2015 10:49:42 +0000 (10:49 +0000)
committerYuri Schaeffer <yuri@nlnetlabs.nl>
Thu, 23 Apr 2015 10:49:42 +0000 (10:49 +0000)
git-svn-id: file:///svn/unbound/branches/edns-subnet@3410 be551aaa-1e26-0410-a405-d3ace91eadb9

edns-subnet/addrtree.c

index 9bba949135e26dfa3a036b626ed18658ed7d65df..6c64d52a1f81711588a05d080f19a26e3fafd487 100644 (file)
@@ -247,6 +247,7 @@ void addrtree_delete(struct addrtree *tree)
        if (!tree) return;
        clean_node(tree, tree->root);
        free(tree->root);
+       tree->size_bytes -= sizeof(struct addrnode);
        while ((n = tree->first)) {
                tree->first = n->next;
                clean_node(tree, n);