windows下面有vld即visual leak detector;
linux下面有valgrind;
memleakcheck tools:
windows:vld 即Visual Leak Detector,使用方式,直接main程序包含.h,链接.lib即可,注意需要debug版本编译,1.0版本免安装
linux:valgrind
valgrind --leak-check=full --show-reachable=no --trace-children=yes --log-file=valgrindlog.log ./xxx
window生产线调试方式:dump文件和trace文件