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

Refactored dns_message_t for using attach/detach semantics

This commit will be used as a base for the next code updates in order
to have a better control of dns_message_t objects' lifetime.
This commit is contained in:
Diego Fronza
2020-09-21 16:16:15 -03:00
committed by Ondřej Surý
parent e6f2f79ff2
commit 12d6d13100
26 changed files with 142 additions and 115 deletions

View File

@@ -3596,7 +3596,7 @@ forward_done(isc_task_t *task, isc_event_t *event) {
INSIST(client->nupdates > 0);
client->nupdates--;
ns_client_sendraw(client, uev->answer);
dns_message_destroy(&uev->answer);
dns_message_detach(&uev->answer);
isc_event_free(&event);
isc_nmhandle_detach(&client->updatehandle);
}