]> git.ipfire.org Git - thirdparty/bind9.git/commit
mem: checkfree assertion after debug list dump
authorColin Vidal <colin@isc.org>
Fri, 17 Oct 2025 08:54:09 +0000 (10:54 +0200)
committerColin Vidal <colin@isc.org>
Sun, 19 Oct 2025 07:05:09 +0000 (09:05 +0200)
commit9f4ff7dec42f2584d1176a30d0a63e8971f715f7
tree7671fa471b254230d417ba24c204e41ba2f0a5e9
parent0caba8e9ce8bb57ea46a08a3a42550978e5af8e7
mem: checkfree assertion after debug list dump

When a memory context is destroyed, if the `checkfree` property is set,
the program assert there is no remaining allocation. If there are and
assertions are enabled, the program immediately stops.

However, if memory trace/record debug is enabled, the dump of
outstanding allocation won't be printed as it is done after the
no remaining allocation assertion check.

This moves the no remaining allocation assertion check after the dump of
outstanding allocations, so it is still possible to figure out what's
still allocated by this memory context.
lib/isc/mem.c