PONTIAC, Ill. (AP) — A man who says Chicago police tortured him until he confessed to a rape he didn't commit has been released from prison after spending 30 years behind bars.

Stanley Wrice walked out of the Pontiac Correctional Center late Wednesday morning.

The 59-year-old's release came a day after a Cook County judge said Wrice should be freed and his conviction should be overturned because officers lied about how they treated him.

Wrice was sentenced to 100 years in prison for a 1982 rape, but has maintained he confessed only after officers beat him.

The decision was the latest development from a dark chapter in Chicago Police Department history in which officers were accused of torturing suspects.

Copyright 2013 The Associated Press. All rights reserved. This material may not be published, broadcast, rewritten or redistributed.