mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-10 21:20:00 -04:00
cleanup parts of the fetch done event that we don't care about
This commit is contained in:
parent
a21582b70e
commit
54b3853dd7
1 changed files with 8 additions and 0 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue