Section 320(5) in The Code of Criminal Procedure, 1973
(5)When the accused has been committed for trial or when he has been convicted and an appeal is pending, no composition for the offence shall be allowed without the leave of the Court to which he is committed, or as the case may be, before which the appeal is to be heard.