2
0
mirror of https://gitlab.isc.org/isc-projects/bind9 synced 2025-08-31 06:25:31 +00:00

cleanup parts of the fetch done event that we don't care about

This commit is contained in:
Bob Halley
1999-10-28 00:29:47 +00:00
parent a21582b70e
commit 54b3853dd7

View File

@@ -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.