Australian swimming legend Ian Thorpe has been released from a Sydney hospital after battling a 'serious infection'.