Valgrind

Valgrind is a powerful tool that can help us track down memory leaks in our programs. Run in the terminal, Valgrind tracks memory reads and writes in programs, as well as making sure that free() is appropriately applied to any malloc(), calloc(), or realloc() call. This section will go over the basics of how to use Valgrind. For the rest of the course, students will be expected to use Valgrind to track down memory leaks in their code.