At a hearing this month the Parole Board heard Williams had been respectful, polite and compliant during his time in prison, although he was the subject of a misconduct complaint for covering his window with a blanket because the light was preventing him from sleeping. He had apologised and no further action was taken.
At the hearing he had spoken of his friendship with Townsley and how he was haunted by the death.
Williams will be released tomorrow after serving nine months of a 31-month sentence.
Among the parole conditions were Williams was not to contact the Townsley family.
He will also be under a 8pm to 6am curfew, and be banned from possessing or consuming alcohol or illicit drugs.