Code of Alabama
Article 2 - Bail.
Section 15-7-21 - Discharge of Defendant - by Judge or Magistrate; Certification and Delivery of Warrant With Undertaking.

(a) When the offense described in the warrant is a misdemeanor and it is not executed by the sheriff or his deputy, at the defendant's request, he may be brought before a judge, or a magistrate when authorized by law to grant bail, of the county in which the warrant was executed; and such judge or magistrate may, without examination, discharge such defendant, upon sufficient bail for his appearance before the court having cognizance of the offense.
(b) The judge or magistrate admitting a defendant to bail under the provisions of subsection (a) of this section must certify the same upon the warrant and deliver such warrant, with the undertaking, to the officer who executed the warrant, who must cause the same to be delivered without unnecessary delay to the clerk of the court in which the defendant is bound by his undertaking to appear.