use valgrind to test mm leak