Do Not Free the Allocated Memory Twice
摘要
Trying to free the allocated memory two times causes undefined behavior. The following example shows the wrong usage of two free statements: