From: Yuri Schaeffer Date: Thu, 23 Apr 2015 10:49:42 +0000 (+0000) Subject: Size of root node not substracted from tree. X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=197450a34192409ae1326d5fbdad88543b70daf0;p=thirdparty%2Funbound.git Size of root node not substracted from tree. git-svn-id: file:///svn/unbound/branches/edns-subnet@3410 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/edns-subnet/addrtree.c b/edns-subnet/addrtree.c index 9bba94913..6c64d52a1 100644 --- a/edns-subnet/addrtree.c +++ b/edns-subnet/addrtree.c @@ -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);