mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-11 10:20:02 -04:00
Destroy the message before detaching the view
With shared name memory pools (f5af981831)
the message needs to be destroyed before the view is detached which
in turn detaches the resolver which checks that all resources have
been returned.
This commit is contained in:
parent
f491845f5a
commit
7ee20d7d10
1 changed files with 1 additions and 1 deletions
|
|
@ -3119,10 +3119,10 @@ destroy_validator(dns_validator_t *val) {
|
|||
if (val->siginfo != NULL) {
|
||||
isc_mem_put(mctx, val->siginfo, sizeof(*val->siginfo));
|
||||
}
|
||||
dns_view_detach(&val->view);
|
||||
if (val->message != NULL) {
|
||||
dns_message_detach(&val->message);
|
||||
}
|
||||
dns_view_detach(&val->view);
|
||||
isc_mem_put(mctx, val, sizeof(*val));
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue