If the motion be granted the court must order that the defendant, if in custody, be discharged therefrom, or if admitted to bail, that his bail be exonerated, or if he have deposited money instead of bail, that the money be refunded to him unless it direct that the case be resubmitted to the same or another grand jury.
R.L.1910, § 5786.