Valgrind is a tool that can detect memory leaks and errors. It provides a heap summary, leak summary, and error summary in its output. A memory leak example is analyzed that allocates memory without freeing it later. Running the example through Valgrind confirms there is a leak reported. Another example without a leak is also shown, and Valgrind correctly reports no leaks. Steps are provided for running Valgrind on Android applications to check for memory leaks from native code.