Section 15-16-43
Commitment of defendant upon finding of mental illness.
If, at the final hearing, the court finds that the defendant is mentally ill and as a consequence of such mental illness poses a real and present threat of substantial harm to himself or to others, the court shall order the defendant committed to the custody of the Commissioner of the Alabama State Department of Mental Health or to such other public facility as the court may order.
If the court does not make such a finding, then the defendant shall be released from custody forthwith.
(Acts 1981, No. 81-708, p. 1189, §3.)