When prisoner shall be discharged.
Section 541
SEC. 541. When prisoner shall be discharged. — When the judge of court has examined into the cause of caption and detention of the person so brought before it, and is satisfied that he is unlawfully imprisoned or detained, he shall forthwith discharge him from confinement. On such examination the judge shall disregard matters of form or technicalities in any warrant, mittimus, or order of commitment by a court or officer authorized to commit by law.