]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: memprof: report the delta between alloc and free on realloc()
authorWilly Tarreau <w@1wt.eu>
Fri, 22 Oct 2021 14:26:12 +0000 (16:26 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 22 Oct 2021 14:40:09 +0000 (16:40 +0200)
commit8cce4d79ff8e448b033aca9b4b09db3b7acf7928
tree1da672625776bb562712744001868415efa2809b
parenta5efdff93c36f75345a2a18f18bffee9b602bc7b
MINOR: memprof: report the delta between alloc and free on realloc()

realloc() calls are painful to analyse because they have two non-zero
columns and trying to spot a leaking one requires a bit of scripting.
Let's simply append the delta at the end of the line when alloc and
free are non-nul.

It would be useful to backport this to 2.4 to help with bug reports.
src/activity.c