Risdon Prison releases inmate before end of sentence