26-2-405. Discharge of witness from arrest by court or judge. 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 26-2-402. If the court has adjourned before the arrest or before application for discharge, a judge of the court may grant the discharge.