Legal basis: Article 52 of the Measures for the Implementation of the Regulations of People's Republic of China (PRC) Detention Center shall issue a release certificate when leaving the prison under any of the following circumstances:
(a) after detention, the case-handling organ finds that it should not be detained or the people's procuratorate does not approve the arrest and notifies it to be released immediately;
(two) after the arrest, the case-handling organ finds that it should not be arrested and notifies the release;
(3) The people's procuratorate makes a decision of exemption or disapproval, and the case-handling organ notifies its release;
(4) Being acquitted or exempted from criminal punishment after people's trial and being released by public announcement;
(5) Convicted prisoners under supervision have served their sentences.