France's president says a political scholar from the country who was serving a three-year sentence in Russia and facing new charges of espionage has been freed in a prisoner swap with France.