Just a self reminder - I actually only just found out how useful valgrind
can be
Simple run
$ valgrind --tool=memcheck --leak-check=full --track-origins=yes -s <command>
Or, with logger
valgrind --leak-check=full --track-origins=yes --log-file=valgrind.rpt <command>
Maybe I will elaborate on this some other time.