installing and using valgrind in ubuntu code example Example: valgrind install ubuntu sudo apt install valgrind