Sun Studio 12: Debugging a Program With dbx

Duplicate Free (duf) Error

Problem: Attempt to free a heap block that has already been freed.

Possible causes: Calling free() more than once with the same pointer. In C++, using the delete operator more than once on the same pointer.


char *a = (char *)malloc(1);
free(a);                    /* Duplicate free (duf) */