The Associated Press

BOSTON — The Toronto Maple Leafs have grown accustomed to playoff disappointment in recent years.

However, after putting together possibly their best defensive effort of the season, their latest victory has them on the brink of getting out of the first round for the first time since 2004.

Auston Matthews broke a scoreless tie in the third period, Kasperi Kapanen added another goal and the Maple Leafs held on to beat the Boston Bruins 2-1 Friday night and take a 3-2 lead in their first-round playoff series.

With the goalie pulled for an extra skater, David Krejci got the Bruins on the board with 43.7 seconds left, but Boston could not tie it up.

The Maple Leafs, who have alternated wins and losses in the first five games, now have a chance to close out the series when it shifts back to Toronto for Game 6 on Sunday.

“Total team victory,” Toronto’s Zach Hyman said. “Guys were battling. It took a full 60 to get it done, but we got it done”

Frederik Andersen had 28 saves for Toronto. The Bruins’ Tuukka Rask finished with 25.

Boston failed to convert on its three power plays, and Toronto was 0 for 1.

“Defensively the ice was tough,” Toronto coach Mike Babcock said. “It was humid in the building. … But I thought our guys kept grinding and stayed patient. We didn’t get in our own way tonight.”

Also Friday:

Avalanche 5, Flames 1: CALGARY, Alberta — Colin Wilson and Mikko Rantanen each had two goals and an assist, and Colorado beat Calgary to advance to the second round of the playoffs. Gabriel Landeskog also scored, and Nathan MacKinnon and Tyson Barrie each had three assists as the Avalanche won a playoff series for the first time since 2008. Philipp Grubauer stopped 28 shots and a penalty shot by Johnny Gaudreau in the first period. T.J. Brodie scored for the Flames, and Mike Smith finished with 27 saves. Calgary, which finished first in the Western Conference at 50-25-7, was beaten by a team that sprinted the final two weeks of the regular season to capture the West’s last wild card and then won four straight in this series after losing the opener.

23031100