HOWTO: Find memory leaks using Valgrind

valgrind --leak-check=full ./exec arg1 arg2