valgrind: fixed memory leak