Fix a valgrind warning