From: Wouter Wijngaards Date: Tue, 25 Aug 2009 06:51:00 +0000 (+0000) Subject: Fixup memleak in unsupported algorithm checks at startup. X-Git-Tag: release-1.4.0rc1~129 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=d8e6209a2e9725dec39d0e379736d15589846656;p=thirdparty%2Funbound.git Fixup memleak in unsupported algorithm checks at startup. git-svn-id: file:///svn/unbound/trunk@1774 be551aaa-1e26-0410-a405-d3ace91eadb9 --- diff --git a/doc/Changelog b/doc/Changelog index 601e1d2f7..5899b510e 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,3 +1,6 @@ +25 August 2009: Wouter + - fixup memleak in trust anchor unsupported algorithm check. + 24 August 2009: Wouter - cleaner memory allocation on exit. autotrust test routines. - free all memory on program exit, fix for ssl and flex. diff --git a/testdata/03-testbound.tpkg b/testdata/03-testbound.tpkg index 883a6ff07..79803d5ad 100644 Binary files a/testdata/03-testbound.tpkg and b/testdata/03-testbound.tpkg differ diff --git a/validator/val_anchor.c b/validator/val_anchor.c index 5b3f1b6d0..e7517f8fe 100644 --- a/validator/val_anchor.c +++ b/validator/val_anchor.c @@ -970,6 +970,10 @@ anchors_assemble_rrsets(struct val_anchors* anchors) " the anchor is ignored (check if you need to" " upgrade unbound and openssl)", b); (void)rbtree_delete(anchors->tree, &ta->node); + lock_basic_unlock(&ta->lock); + lock_basic_destroy(&ta->lock); + ta = next; + continue; } lock_basic_unlock(&ta->lock); ta = next;