TOKYO - China has freed a Japanese scholar who it claimed was spying during a visit to the country earlier this year, the two governments said Friday.