- 博客(1)
- 收藏
- 关注
原创 c语言malloc free错误 pointer being freed was not allocated
打印完成以后会提示错误:untitled1(93846,0x11108e600) malloc: *** error for object 0x600000178238: pointer being freed was not allocateduntitled1(93846,0x11108e600) malloc: *** set a breakpoint in malloc_error_break to debug分析:free后的空间,不会立即失效,通常需要将free后的地址置为NULL,fre
2023-04-27 10:52:32
825
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人