Invalid write of size 1 at 0x........: main (malloc2.c:39) by 0x........: __libc_start_main (...libc...) by 0x........: free@@GLIBC_2.0 (in /.../tests/malloc2) Address 0x........ is 0 bytes inside a block of size 429 free'd at 0x........: free (vg_clientfuncs.c:...) by 0x........: main (malloc2.c:38) by 0x........: __libc_start_main (...libc...) by 0x........: free@@GLIBC_2.0 (in /.../tests/malloc2) Invalid free() / delete / delete[] at 0x........: free (vg_clientfuncs.c:...) by 0x........: main (malloc2.c:43) by 0x........: __libc_start_main (...libc...) by 0x........: free@@GLIBC_2.0 (in /.../tests/malloc2) Address 0x........ is 0 bytes inside a block of size 429 free'd at 0x........: free (vg_clientfuncs.c:...) by 0x........: main (malloc2.c:38) by 0x........: __libc_start_main (...libc...) by 0x........: free@@GLIBC_2.0 (in /.../tests/malloc2) ERROR SUMMARY: 2 errors from 2 contexts (suppressed: 0 from 0) malloc/free: in use at exit: 0 bytes in 0 blocks. malloc/free: 443 allocs, 444 frees, 265463 bytes allocated. For a detailed leak analysis, rerun with: --leak-check=yes For counts of detected errors, rerun with: -v