BUG/MINOR: memprof: properly account for differences for realloc()
authorWilly Tarreau <w@1wt.eu>
Tue, 11 May 2021 07:12:56 +0000 (09:12 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 11 May 2021 07:12:56 +0000 (09:12 +0200)
commit79acefa749dcafd1ad9aee5cdb85e5a57cf61b2c
tree0d4598c7710d126424ea8fcb71b734f43abc3047
parent3df59899601fdd3dd689ac28b368b9b18e11a285
BUG/MINOR: memprof: properly account for differences for realloc()

The realloc() function checks if the size grew or reduced in order to
count an allocation or a free, but it does so with the absolute (new
or old) value instead of the difference, resulting in realloc() often
being credited for allocating too much.

No backport is needed.
src/activity.c