mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
Fix a cleanup bug when isc_task_create() fails in dns_catz_new_zones()
Use isc_mem_putanddetach() instead of isc_mem_put() to detach from the memory context.
This commit is contained in:
parent
6f8fb0241a
commit
9050481d1f
1 changed files with 1 additions and 1 deletions
|
|
@ -779,7 +779,7 @@ cleanup_ht:
|
|||
isc_ht_destroy(&new_zones->zones);
|
||||
isc_refcount_destroy(&new_zones->refs);
|
||||
isc_mutex_destroy(&new_zones->lock);
|
||||
isc_mem_put(mctx, new_zones, sizeof(*new_zones));
|
||||
isc_mem_putanddetach(&new_zones->mctx, new_zones, sizeof(*new_zones));
|
||||
|
||||
return (result);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue