--- a/tdecore/malloc/malloc.c +++ b/tdecore/malloc/malloc.c @@ -4306,7 +4306,7 @@ remainder_size = chunksize(p); if (opts & 0x2) { /* optionally clear the elements */ - memset(mem, 0, remainder_size - SIZE_SZ - array_size) + memset(mem, 0, remainder_size - SIZE_SZ - array_size); } /* If not provided, allocate the pointer array as final part of chunk */