The US army private serving a 35-year prison sentence for leaking classified documents has thanked President Barack Obama for shortening her sentence. Chelsea Manning, whose sentence was commuted by the outgoing president, thanked him "for giving me a chance". The 29-year-old transgender soldier, born Bradley Manning, gave embarrassing documents to Wikileaks in 2010. At President Obama's final press conference on Wednesday, he declared that "justice has been served". She will be freed from the Fort Leavenworth military prison in May - 29 years ahead of her scheduled release in 2045.