Myanmar will free almost 25,000 prisoners in an amnesty to mark the traditional New Year, the president’s office said on Friday, its largest mass pardon in recent years.