Fixed valgrind false warning.