Debugging a Program With dbx

Bad Free (baf)


Problem: Attempt to free memory that has never been allocated.
Possible causes: Passing a non-heap data pointer to 
free() or realloc().
		char a[4];
		char *b = &a[0];

		free(b);					/* Bad free (baf) */