Ala. Code § 15-11-9
When Defendant to Be Discharged
If upon the whole evidence in a preliminary examination it appears to the court that no offense has been committed or that there is no probable cause for charging the defendant therewith, the defendant must be discharged.