mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-08 18:42:04 -04:00
don't write to freed memory
This commit is contained in:
parent
ae7d0a4375
commit
fbb5a4f316
1 changed files with 1 additions and 1 deletions
|
|
@ -182,8 +182,8 @@ dns_zt_detach(dns_zt_t **ztp) {
|
|||
if (destroy) {
|
||||
dns_rbt_destroy(&zt->table);
|
||||
isc_rwlock_destroy(&zt->rwlock);
|
||||
isc_mem_put(zt->mctx, zt, sizeof *zt);
|
||||
zt->magic = 0;
|
||||
isc_mem_put(zt->mctx, zt, sizeof *zt);
|
||||
}
|
||||
|
||||
*ztp = NULL;
|
||||
|
|
|
|||
Loading…
Reference in a new issue