Fix the valgrind error in table test.