The Associated Press

TORONTO — A crucial turnover brought a sour end to DeMar DeRozan’s first game back in Toronto.

Kawhi Leonard stole the ball from DeRozan to score the go-ahead dunk with 15 seconds left and the Raptors beat the San Antonio Spurs 120-117 on Friday night, spoiling the former Toronto star’s return to Canada.

“Tonight was like a playoff game,” Leonard said. “We had to grind it out all the way to the end.”

Leonard scored 19 of his 25 points in the second half, and combined with Kyle Lowry to strip DeRozan at midcourt before racing in alone for a one-handed slam.

“I knew they were going to be aggressive, trying to make a play on the ball and then foul,” DeRozan said. “I’ve just got to be more aware.”

Traded to San Antonio in the offseason deal that sent Leonard to Toronto, DeRozan received a warm welcome but was denied a second victory over his former team. He finished with 23 points.

Also Friday:

Timberwolves 115, Knicks 104: NEW YORK — Derrick Rose scored 20 points, Taj Gibson added a season-high 19 and Minnesota overcame the first missed game of Karl-Anthony Towns’ career to beat New York.

Pistons 125, Hawks 122: ATLANTA — Thon Maker made a tiebreaking 3-pointer with 16.7 seconds remaining and Detroit battled through Blake Griffin’s ejection to beat Atlanta.

Pacers 126, Pelicans 111: INDIANAPOLIS — Wesley Matthews scored 15 of his 24 points during a third-quarter rally, Domantas Sabonis had 18 points and 12 rebounds and Indiana erased a 20-point deficit to beat New Orleans.

Hornets 123, Wizards 110: CHARLOTTE, N.C. — Kemba Walker had 27 points and 11 assists in his first outing since the All-Star game and Charlotte came away with the victory despite Bradley Beal’s 46-point night for Washington.

Bulls 110, Magic 109: ORLANDO, Fla. — Lauri Markannen made two of three free throws with 1.5 seconds left to lift Chicago.

Nuggets 114, Mavericks 104: DALLAS — Nikola Jokic had 19 points and 13 rebounds and Denver beat Dallas for its third straight victory.

Clippers 112, Grizzlies 106: MEMPHIS, Tenn. — Montrezl Harrell matched his career high with 30 points, Danilo Gallinari added 23, including 10 straight points in the fourth quarter, and Los Angeles beat Memphis.

Thunder 148, Jazz 147: OKLAHOMA CITY — Paul George floated in a basket with less than a second remaining in the second overtime, capping a 45-point night with the winning shot in Oklahoma City’s victory. Russell Westbrook added 43 points, 15 rebounds and eight assists.