HOUSTON — Patty Mills hit a 3-pointer with 12.9 seconds left to lift the San Antonio Spurs over the Houston Rockets 102-100 on Tuesday night.

Eric Gordon missed a 3-point attempt after that before Manu Ginobili missed two free throws to give Houston one last chance, but James Harden’s 3-point attempt bounced off the rim at the buzzer.

The victory is San Antonio’s fifth straight and improves the Spurs to 15-1 on the road. It also snaps Houston’s NBA-long 10-game winning streak.

Kawhi Leonard led the Spurs with 21 points, and LaMarcus Aldridge added 17 points with 10 rebounds.

Harden finished with 31 points, 10 rebounds and seven assists.

CAVALIERS 114, BUCKS 108: LeBron James buried a go-ahead 3-pointer with 24 seconds left in overtime and Cleveland held on for a victory at Milwaukee to avenge a late November loss.

Milwaukee took a 108-107 lead on a tip-in by Giannis Antetokounmpo with 1:12 left. Cleveland’s Kyrie Irving missed a 3-pointer from the left corner on the next possession, but Jabari Parker’s lay-in attempt at the other end curled out.

James was fouled on the rebound by Antetokounmpo, his sixth. James then hit the deep 3-pointer to put Cleveland up 110-108.

RAPTORS 116, NETS 104: Kyle Lowry had 23 points, Norman Powell scored a season-high 21 and the Toronto won at home.

Lowry, who shot 8 of 12 from the field and 3 of 5 on 3-pointers, added eight assists and four rebounds before sitting out the final 6 minutes as the Raptors won their second straight.

KNICKS 118, PACERS 111: Carmelo Anthony matched a season high with 35 points and host New York used a big second-half turnaround to beat Indiana.

The Knicks fell behind by 15 in the third quarter, then suddenly seized control to snap a three-game losing streak. Anthony scored 26 in the second half.

HORNETS 117, LAKERS 113: Kemba Walker had 28 points and 10 assists, Marco Belinelli scored 11 fourth-quarter points and host Charlotte rallied from 19 down to beat Los Angeles.

MAGIC 136, HEAT 130: Nik Vucevic had 26 points and 12 rebounds, Evan Fournier scored 26 and hit the 3-pointer that put Orlando up for good, and the Magic won at Miami Heat in double overtime.