added valgrind output to the log