1:win
vmap 查看内存泄漏
windebug 查看泄漏源代码
2:linux
valgrind:
valgrind --tool=memcheck --leak-check=full -trace-children=yes -track-fds=yes --log-file=memcheck.log --show-reachable=yes ./test
1:win
vmap 查看内存泄漏
windebug 查看泄漏源代码
2:linux
valgrind:
valgrind --tool=memcheck --leak-check=full -trace-children=yes -track-fds=yes --log-file=memcheck.log --show-reachable=yes ./test