diff --git a/src/zmalloc.c b/src/zmalloc.c index 4a7f2028e..565376721 100644 --- a/src/zmalloc.c +++ b/src/zmalloc.c @@ -236,9 +236,6 @@ void *zrealloc_usable(void *ptr, size_t size, size_t *usable) { size_t zmalloc_size(void *ptr) { void *realptr = (char*)ptr-PREFIX_SIZE; size_t size = *((size_t*)realptr); - /* Assume at least that all the allocations are padded at sizeof(long) by - * the underlying allocator. */ - if (size&(sizeof(long)-1)) size += sizeof(long)-(size&(sizeof(long)-1)); return size+PREFIX_SIZE; } size_t zmalloc_usable_size(void *ptr) {