Invalid free() / delete / delete[] / realloc() at 0x........: free (vg_replace_malloc.c:...) by 0x........: main (badfree.c:12) Address 0x........ is not stack'd, malloc'd or (recently) free'd Invalid free() / delete / delete[] / realloc() at 0x........: free (vg_replace_malloc.c:...) by 0x........: main (badfree.c:15) Address 0x........ is on thread 1's stack