From 54b3853dd7e213d9def6599afbb532a79ca72ff9 Mon Sep 17 00:00:00 2001 From: Bob Halley Date: Thu, 28 Oct 1999 00:29:47 +0000 Subject: [PATCH] cleanup parts of the fetch done event that we don't care about --- lib/dns/adb.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/dns/adb.c b/lib/dns/adb.c index d4ce464a61..d95b7bcdad 100644 --- a/lib/dns/adb.c +++ b/lib/dns/adb.c @@ -2172,6 +2172,14 @@ fetch_callback(isc_task_t *task, isc_event_t *ev) dns_resolver_destroyfetch(adb->view->resolver, &fetch->fetch); dev->fetch = NULL; + /* + * Cleanup things we don't care about. + */ + if (dev->node != NULL) + dns_db_detachnode(dev->db, &dev->node); + if (dev->db != NULL) + dns_db_detach(&dev->db); + /* * If this name is marked as dead, clean up, throwing away * potentially good data.