Patrick Marleau's power-play goal gave Toronto a 5-2 lead at 5:27 of the third. Auston Matthews made a hard pass to the top of the crease, where Marleau redirected the puck for his ninth of the season.
"I was hoping for it," Marleau said. "He made a great play there. I just had my stick on the ice and he used me as a backboard."
Lindholm went to the net to put in the rebound of Hanifin's shot and make it 5-3 at 13:58. Hanifin made it 5-4 at 15:49 on a hard wrist shot from above the left circle.
Carolina pulled Darling for the extra attacker with a little more than two minutes remaining in the third, but Andersen held off the Hurricanes, making two saves on Ryan in close.
"Some nights are ugly. That's what it is," Toronto coach Mike Babcock said. "They were quicker and jumped better than us. Obviously, we scored some good goals, some timely goals, but [Andersen] was the main event."