This optional pointer is used to allocate temporary storage where you can store information that needs to be retained between calls to and from the handler.
The returned pointer may be temporary and should not be stored for later use.
原因就是,只能是临时存储,不能使用。
3
To correct the defect, assign the result of the reallocation function to a temporary, and then replace the original pointer after successful reallocation.