How to check if memory to which pointer p points has been succesfully deallocated?
Sorry, very short answer "You can't"