Compiling with debug (-g in gcc) lets valgrind report which function's allocating lost memory
Reply on news.ycombinator.com