Guardedalloc: Don't use aligned blocks to calculate memory sloppyness

Aligned memory is allocated with memalign() and malloc_usable_size() can't be
used to measure this block.
This commit is contained in:
Sergey Sharybin 2015-04-20 19:23:25 +05:00
parent 42e427905c
commit 6298632bfa

@ -711,7 +711,7 @@ void MEM_guarded_printmemlist_stats(void)
totpb++;
pb++;
if (!membl->mmap) {
if (!membl->mmap && membl->alignment == 0) {
mem_in_use_slop += (sizeof(MemHead) + sizeof(MemTail) +
malloc_usable_size((void *)membl)) - membl->len;
}