]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: pool/debug: create a new pool_alloc_flag() macro
authorWilly Tarreau <w@1wt.eu>
Wed, 16 Nov 2022 10:30:04 +0000 (11:30 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 16 Nov 2022 10:44:26 +0000 (11:44 +0100)
commitf7c475df5c0a5868fc1911877befbe6d7c5cf475
tree67b539e4f0e829887e707cb92028156b701140c9
parente608b0eb1699be68e8c9fe95fec037eeeecedb4a
MINOR: pool/debug: create a new pool_alloc_flag() macro

This macro just serves as an intermediary for __pool_alloc() and forwards
the flag. When DEBUG_MEM_STATS is set, it will be used to collect all
pool allocations including those which need to pass an explicit flag.

It's now used by b_alloc() which previously couldn't be tracked by
DEBUG_MEM_STATS, causing some free() calls to have no corresponding
allocations.
include/haproxy/dynbuf.h
include/haproxy/pool.h