The court or officer issuing the subpoena, and the court or officer before whom the attendance is required, may discharge the witness from an arrest made in violation of the provisions of this chapter. If the court has adjourned before the arrest, or before application for the discharge, a judge of the court may grant the discharge.
Idaho Code § 9-1306