§ 3972 -   Discharge; decision and record

§ 3972. Discharge; decision and record

When legal cause is not shown for the imprisonment or restraint, such court or magistrate shall discharge the person therefrom. The petition for a writ of habeas corpus heard by a court or magistrate, together with the decision thereon in writing, shall be returned for record to the office of the county clerk of the county in which the person is alleged to be restrained or confined, or, if restrained upon process issuing from a court, into the clerk's office in the county where such court is held. Such proceedings shall be docketed and properly indexed, and the same, together with the decision thereon, recorded in the same manner as other judgments of such court.