If the defendant is not arrested on a warrant from the proper county, he must be discharged from custody, or his bail in the action be exonerated, or money deposited instead of bail refunded, as the case may be, and the sureties in the undertaking as mentioned in the last section, must be discharged.
R.L.1910, § 5893.