mirror of
https://github.com/isc-projects/bind9.git
synced 2026-06-11 01:59:59 -04:00
mem_put/mem_get were inconsistent in updating ctx->malloced if ISC_MEM_CHECKOVERRUN was defined
This commit is contained in:
parent
04241eba68
commit
4a85cab586
1 changed files with 3 additions and 0 deletions
|
|
@ -827,6 +827,9 @@ mem_put(isc__mem_t *ctx, void *mem, size_t size) {
|
|||
memset(mem, 0xde, size); /* Mnemonic for "dead". */
|
||||
#endif
|
||||
(ctx->memfree)(ctx->arg, mem);
|
||||
#if ISC_MEM_CHECKOVERRUN
|
||||
size += 1;
|
||||
#endif
|
||||
ctx->malloced -= size;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue