Legal basis: Criminal Procedure Law of People's Republic of China (PRC).
Article 95 After a criminal suspect or defendant is arrested, the people's procuratorate shall still examine the necessity of detention. If it is not necessary to continue detention, it shall be suggested to release or change compulsory measures. The relevant authorities shall notify the people's procuratorate of the handling within ten days.
Article 99 A people's court, people's procuratorate or public security organ shall release a criminal suspect or defendant after the expiration of compulsory measures, obtain bail pending trial, place him under residential surveillance or change compulsory measures according to law. When the statutory time limit for the people's court, the people's procuratorate or the public security organ to take compulsory measures expires, the criminal suspect, the defendant and his legal representative, close relatives or defenders have the right to demand the cancellation of compulsory measures.