make valgrind happy about memory