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. The library doesn't care what name you gave a varaible in your source code (it's long gone by the time the code is executed). All that matters is the value, and in this case the values passed to free() would be the same.
free()