A$AP Rocky walked out of the courtroom in Los Angeles with his partner Rihanna as a free man after facing up to 24 years behind bars.