Commit 4a85cab5 authored by Mark Andrews's avatar Mark Andrews
Browse files

mem_put/mem_get were inconsistent in updating ctx->malloced if ISC_MEM_CHECKOVERRUN was defined

parent 04241eba
......@@ -827,6 +827,9 @@ mem_put(isc__mem_t *ctx, void *mem, size_t size) {
memset(mem, 0xde, size); /* Mnemonic for "dead". */
(ctx->memfree)(ctx->arg, mem);
size += 1;
ctx->malloced -= size;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment