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.

"I thought it was a great game, a real competitive game," San Antonio coach Gregg Popovich said.

L.A. Clippers 122, Memphis 106: Danilo Gallinari went on a scoring spree midway through the fourth quarter Friday to make sure the Los Angeles Clippers maintained their hold on the last playoff spot in the Western Conference. Gallinari scored 23 points, including 10 straight in the fourth quarter, Montrezl Harrell matched his career high with 30 points, and the Clippers beat host Grizzlies. Chicago 110, Orlando 109: Lauri Markannen made two of three free throws with 1.5 seconds left to give the visiting Bulls a one-point victory over the Magic. After being fouled by Aaron Gordon on a three-pointer, Markannen missed the first attempt, the Bulls' only miss of the game in 19 attempts, and hit the second two.

Denver 114, Dallas 104: Nikola Jokic had 19 points and 13 rebounds and Denver beat Dallas for its third victory in a row. Dallas rookie star Luka Doncic sat out with a sore right ankle. Jalen Brunson started in Doncic's place and had a career-high 22 points.

Charlotte 123, Washington 110: Kemba Walker had 27 points and 11 assists in his first outing since the All-Star Game, Nic Batum added 20 points in his first game this season at shooting guard and the Hornets defeated the Wizards. The Hornets overcame a season-high 46 points from Washington's Bradley Beal to improve to 20-9 at home.

Detroit 125, Atlanta 122: Thon Maker made a tiebreaking three-pointer with 16.7 seconds remaining and the Pistons overcame Blake Griffin's ejection to beat the host Hawks. Reggie Jackson scored a season-high 32 points for Detroit. Griffin was ejected after his second technical foul in the third quarter.