Normally, if a pointer is freed twice, it\'s a double free. For example,
char *ptr; ptr=malloc(5 * sizeof(*ptr)); free(ptr); free(ptr);
The
Yes as the pointers both point to the same address and so pass the same address to free.
You can show what the value of the pointer is by printing it
printf( "%p", ptr);
or look at it in a debugger