Valgrind run 1.
Fix mem leak.
Fix invalid conditional jump.