cnv: Fixed a mem alloc bug when viterbi is combined with fwd/bwd