使用AddressSanitizer做內存分析(一)——入門篇 使用AddressSanitizer做內存分析 新建文件mem_leak.cpp,鍵入代碼: 編譯時加上-fsanitizer=leak選項,並執行: 發現報錯,找不 ...