Seems sort of like he was held for as long as he'd have been held if he'd been judged guilty of stealing everything he was accused of stealing, and if he wanted to default himself into prison for that stretch without a trial, the judge was content to oblige him.
The problem obviously being that then there is never a trial and no one ever proved beyond a reasonable doubt that he was even capable of disclosing the information.