Mr. Dunlop was convicted of civil and criminal contempt of court charges for not providing testimony at a probe into the institutional response to allegations of a sexual abuse ring in Cornwall.
The Crown had been seeking a further three to six months in prison, while Mr. Dunlop wanted to be released immediately.
Mr. Dunlop was representing himself in court.