analyis.hmm.viterbi: fixed memory leak

free statement were placed after return call (doh)