MILWAUKEE — Giannis Antetokounmpo scored 24 points and Khris Middleton made four free throws in the closing seconds Wednesday night to help the Milwaukee Bucks hold off the Miami Heat, 114-108.

Jabari Parker added 23 points, Middleton had 22, and Miles Plumlee scored a season-high 18 for the Bucks. They snapped the Heat’s winning streak at five games.

Luol Deng had 20 points and 11 rebounds for Miami. Hassan Whiteside added 23 points and 13 rebounds, and Dwyane Wade, playing with five fouls, had 18 points.

After Wade scored on a fast-break layup to cut it to 110-106, Middleton made two free throws. Joe Johnson scored off a pass from Wade, but Middleton answered with two more free throws.

Deng’s 3-pointer gave the Heat a 92-89 lead early in the fourth, but Plumlee and Antetokounmpo sparked an 8-0 run that put the Bucks ahead 97-92 with 6:07 to play. Plumlee made both free throws after Justise Winslow was called for a Flagrant Type 1 foul. Antetokounmpo added a layup and a floater in the lane as the Bucks regained control. After Wade hit a jumper, Antetokounmpo scored on a putback.

KNICKS 128, SUNS 97: Sasha Vujacic scored a season-high 23 points in a rare start, Carmelo Anthony also had 23 and New York won at Phoenix.

Vujacic was 7 of 8 from the field and tied a career high by going 6 of 7 from 3-point range. He made his first start since last November and had not played in two of the Knicks’ last three games.

The Knicks hit a season-high 16 3s. Derrick Williams scored 18 points, and Jose Calderon added 10 points and 12 assists as New York won for the second time in six games.

Rookie Devin Booker led Phoenix with 32 points. Tyson Chandler’s nine rebounds gave the veteran center 9,005 for his career, making him the 50th player in NBA history to reach that milestone.

HORNETS 122, PELICANS 113: Kemba Walker scored 35 points and Charlotte held on for its 11th win in the last 13 games.

Walker shot 9 of 18 from the field and had five 3-pointers for his fourth straight 30-point game. He added seven assists and seven rebounds for Charlotte (35-28), which has won five straight during its recent playoff push.

Courtney Lee had 16 points and Nicolas Batum added 15 as all five Charlotte starters reached double figures in scoring midway through the third quarter.

Anthony Davis had 40 points and 13 rebounds, and Jure Holiday scored a season-high 38 points as the injury-plagued Pelicans fell to 7-24 on the road this season.

ROCKETS 118, 76ERS 104: James Harden scored 29 points, Dwight Howard had 21 points and 18 rebounds, and Houston won at Philadelphia.

Patrick Beverly added 16 points, all in the first half, and Trevor Ariza finished with 15 for Houston. The Rockets, who hold the eighth and final playoff spot in the Western Conference, have won three of their last four to even their record at .500.

Ish Smith scored 21 points, and Nerlens Noel and Robert Covington had 17 apiece for the Sixers (8-56), who lost their 13th straight despite a big fourth-quarter rally.

Harden, who poured in 50 points in Houston’s only other meeting with Philadelphia this season, added nine rebounds and eight assists.

PISTONS 102, MAVERICKS 96: Marcus Morris scored 20 points, including two 3-pointers during a decisive fourth-quarter run, and Andre Drummond had 25 points and 17 rebounds to help Detroit win at Dallas.

Drummond leads the NBA with 54 double-doubles. Tobias Harris added 19 points for Detroit.

Chandler Parsons and Dirk Nowitzki each scored 25 points for Dallas, which lost its season-high fourth straight.

The Mavericks are in a stretch with 9 of 10 games at home but have gone 4-5 in that stretch.

NOTES

CAVALIERS: Cleveland signed guard Jordan McRae for the remainder of this season.

The team said it signed McRae to a multiyear contract, but provided no further details on his deal.

McRae has appeared in three games since he signed a 10-day contract Feb. 28.

BULLS: Guard Jimmy Butler is getting a second opinion on his injured left knee.

He’ll visit an orthopedist and will miss Thursday’s game at San Antonio.