494. Effect of withdrawal from prosecution.

(a) if it is made before a charge has been framed, the accused shall be discharged in respect of such offence or offences ;
(b) if it is made after a charge has been framed, or when under this Code no charge is required; he shall be acquitted in respect of such offence or offences.