See the comment for usage of this function.
This is used to protect the pointer itself.