use valgrind to debug memory leak