commit | 79acefa749dcafd1ad9aee5cdb85e5a57cf61b2c | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Tue May 11 09:12:56 2021 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Tue May 11 09:12:56 2021 +0200 |
tree | 0d4598c7710d126424ea8fcb71b734f43abc3047 | |
parent | 3df59899601fdd3dd689ac28b368b9b18e11a285 [diff] |
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.