Earlier, a two-wicket burst at the start of the innings by Malinga had put Sri Lanka firmly in control of the game until Afridi stepped on the gas and nearly turned the match on its head.
If Pakistan had blooded Shahzaib Hasan and Umar Amin with a hope of preparing their team for the 2011 World Cup, the two young top-order batsmen failed to live up to expectations. They struggled against Malinga and Nuwan Kulasekara, with neither having a clue against the seaming ball.
But Afridi made little of the pressure, smashing successive sixes off Farveez Maharoof and heaving the wily Muralitharan over the pickets on five occasions.
Image:Sri Lanka's wrecker-in-chief Lasith Malinga celebrates the dismissal of Pakistan's Umar Amin