- Installation
$ sudo apt install valgrind
- Usage
$ g++ -g main.cpp -o main # to include debugging information with flag '-g'
$ valgrind --leak-check=yes ./main
Reference
原创文章,作者:kirin,如若转载,请注明出处:https://blog.ytso.com/tech/aiops/267999.html
$ sudo apt install valgrind
$ g++ -g main.cpp -o main # to include debugging information with flag '-g'
$ valgrind --leak-check=yes ./main
Reference
原创文章,作者:kirin,如若转载,请注明出处:https://blog.ytso.com/tech/aiops/267999.html