diff --git a/bin/named/query.c b/bin/named/query.c index 436322c1ad..af41af3206 100644 --- a/bin/named/query.c +++ b/bin/named/query.c @@ -3301,6 +3301,7 @@ query_addbestns(ns_client_t *client) { query_putrdataset(client, &rdataset); if (sigrdataset != NULL) query_putrdataset(client, &sigrdataset); + dns_db_detach(&db); RESTORE(db, zdb); RESTORE(fname, zfname);