section 550(5)


550(5) Where a witness has been committed to prison pursuant to subsection (4), the court before which the witness appears or a justice having jurisdiction in the territorial division where the prison is situated may, by order in Form 39, discharge the witness from custody when the trial is concluded.