When the judge has examined the cause of caption and detention of a person brought before him as provided in section 2725.12 of the Revised Code, and is satisfied that such person is unlawfully imprisoned or detained, he shall forthwith discharge such person from confinement. On such examination, the judge may disregard matters of form or technicalities in any mittimus or order of commitment by a court or officer authorized by law to commit.
R.C. §2725.17