Fasta: Fix errors reported by valgrind