Once I've freed allocated memory, is there any way of testing the block? free() has no return and I need to be able to ensure the memory has in fact been freed.
Also, if I do this:
NODE *ptr1, *ptr2;
ptr1 = malloc(sizeof(NODE));
ptr2 = ptr1;
Does this free the memory allocated to ptr1?