]> git.ipfire.org Git - thirdparty/valgrind.git/commit
Fix n-i-bz bug in auto free pool: a block using the last byte of the meta
authorPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Wed, 5 Oct 2016 19:27:47 +0000 (19:27 +0000)
committerPhilippe Waroquiers <philippe.waroquiers@skynet.be>
Wed, 5 Oct 2016 19:27:47 +0000 (19:27 +0000)
commitd630e8a6fedba9962ad5b2104fbdef26de11bef2
tree0dd7aa0ab83be0a011cf07c5633e6728e2a79b8f
parent02c095a3b9e6d86dacf12eac5bebf920f0d4c277
Fix n-i-bz bug in auto free pool: a block using the last byte of the meta
pool was not auto-freed.

This was shown by:
./vg-in-place --leak-check=full ./memcheck/tests/leak-autofreepool 2 100

Without the patch, it reports 101 blocks leaked, with one block
being from the auto-free meta pool.

With the fix, there is (as expected) 100 leaked blocks.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@16024
memcheck/mc_malloc_wrappers.c