]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
3304. [bug] Use hmctx, not mctx when freeing rbtdb->heaps. [RT #28571]
authorMark Andrews <marka@isc.org>
Wed, 11 Apr 2012 00:52:26 +0000 (10:52 +1000)
committerMark Andrews <marka@isc.org>
Wed, 11 Apr 2012 00:52:26 +0000 (10:52 +1000)
CHANGES
lib/dns/rbtdb.c

diff --git a/CHANGES b/CHANGES
index 3d929275e4b7703de7794cdcdf6e286e3aad4fe3..ac9e9d296d87a0fc5aba4e0c69d7d75cc305fdba 100644 (file)
--- a/CHANGES
+++ b/CHANGES
@@ -1,3 +1,5 @@
+3304.  [bug]           Use hmctx, not mctx when freeing rbtdb->heaps. [RT #28571]
+
 3301.  [contrib]       Update queryperf to build on darwin.  Add -R flag
                        for non-recursive queries. [RT #28565]
 
index e62eb95909481bb24ac406d23d049364cc280bde..9478ef946d886d4a17fc977fd36f90efc689d15a 100644 (file)
@@ -7277,7 +7277,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 *));
        }