In any criminal case, if the supreme court or court of appeals affirms the judgment of the district court upon review brought by the defendant, it shall direct that the sentence pronounced be executed; and if the judgment is reversed, it shall direct a new trial or that the defendant be absolutely discharged according to the circumstances of the case.
NMS § 31-11-3