linux 内存释放调试经验积累

来源:互联网 发布:肖凯农村淘宝 编辑:程序博客网 时间:2024/06/14 01:51

cyf>>>>>>>>>>>>>>KernerlIneraction.cpp ServerIps 0x84ebe90
*** glibc detected *** ./TestKernelInteraction.e: double free or corruption (!prev): 0x084ebe90 ***

这个错误造成的原因是我申请了5个长度的内存,释放的时候释放6个长度,故报错。

0 0