Changing the value of a pointer, and memory leak

后端 未结 0 1009
深忆病人
深忆病人 2020-12-15 09:07

Will the snippet of code below cause a memory leak because now my temp points to something else, and the memory block which was allocated for temp will remain on the heap?

相关标签:
回答
  • 消灭零回复
提交回复
热议问题