摘要: 使用AddressSanitizer做内存分析 新建文件mem_leak.cpp,键入代码: #include <iostream> int main() { int* p = new int[10]; p = NULL; return 0; } 编译时加上-fsanitizer=leak选项,并执 阅读全文
posted @ 2018-11-30 17:47 溟漓 阅读(6877) 评论(0) 推荐(0) 编辑