3304. [bug] Use hmctx, not mctx when freeing rbtdb->heaps. [RT #28571]

This commit is contained in:
Mark Andrews 2012-04-11 10:44:24 +10:00
parent efc5cea15d
commit 2490e43c67
2 changed files with 3 additions and 1 deletions

View file

@ -1,3 +1,5 @@
3304. [bug] Use hmctx, not mctx when freeing rbtdb->heaps. [RT #28571]
3303. [bug] named could die when reloading. [RT #28606]
3302. [bug] dns_dnssec_findmatchingkeys could fail to find

View file

@ -7818,7 +7818,7 @@ dns_rbtdb_create
for (i = 0 ; i < (int)rbtdb->node_lock_count ; i++)
if (rbtdb->heaps[i] != NULL)
isc_heap_destroy(&rbtdb->heaps[i]);
isc_mem_put(mctx, rbtdb->heaps,
isc_mem_put(hmctx, rbtdb->heaps,
rbtdb->node_lock_count * sizeof(isc_heap_t *));
}