lxg

导航

 

2023年7月15日

摘要: 在可能泄漏的文件头部加入下面几行(保证malloc和new的泄漏都可以检测到) #define _CRTDBG_MAP_ALLOC #include <crtdbg.h> #ifdef _DEBUG //重载new运算符 #define new new(_NORMAL_BLOCK, __FILE__ 阅读全文
posted @ 2023-07-15 12:06 lxg_7105 阅读(91) 评论(0) 推荐(0) 编辑