US comedian Bill Cosby has left prison hours after his sexual assault conviction was overturned by Pennsylvania’s Supreme Court.
The judges said there had been a “process violation” by the prosecution, but admitted their ruling was unusual.
Mr Cosby, 83, served more than two years of a three to 10-year sentence at a state prison near Philadelphia.
In 2018 he was found guilty of drugging and molesting ex-basketball player Andrea Constand.
Mr Cosby is best known for starring in the 1980s TV series The Cosby Show and was once known as “America’s Dad”.
Dozens of women have publicly accused Mr Cosby of sexual assault, but he was only tried criminally for the incident against Ms Constand.
In a verdict, Pennsylvania’s highest court found there was a “process violation” because Cosby’s lawyers had made an agreement with a previous state prosecutor that he would not be charged in the case.