Corrected what valgrind complains about.