]> git.ipfire.org Git - thirdparty/bind9.git/commit
check memory context validity before mem_destory
authorColin Vidal <colin@isc.org>
Sat, 18 Oct 2025 15:44:27 +0000 (17:44 +0200)
committerColin Vidal <colin@isc.org>
Sun, 19 Oct 2025 07:05:09 +0000 (09:05 +0200)
commitc50ace654d877f442cf26c2043936eb005d46889
treeaa45993da509658f85f7af8770f8ac90a0cb213c
parent9f4ff7dec42f2584d1176a30d0a63e8971f715f7
check memory context validity before mem_destory

Add a magic number check to ensure the memory context validity before
destorying it.

This check is needed now as it was done before implicitly when
isc_mem_inuse was called, but isc_mem_inuse is now called later (to be
able to dump the outstanding allocations).
lib/isc/mem.c