diff --git a/validator/val_anchor.c b/validator/val_anchor.c index 909afd62b..b9c268486 100644 --- a/validator/val_anchor.c +++ b/validator/val_anchor.c @@ -1032,7 +1032,7 @@ anchors_assemble_rrsets(struct val_anchors* anchors) " upgrade unbound and openssl)", b); (void)rbtree_delete(anchors->tree, &ta->node); lock_basic_unlock(&ta->lock); - lock_basic_destroy(&ta->lock); + anchors_delfunc(&ta->node, NULL); ta = next; continue; }