PHOENIX — Paul Goldschmidt homered, and the Arizona Diamondbacks blew the game open late to prevent Los Angeles from clinching the NL West title with a 9-4 victory over the Dodgers on Wednesday night.

Goldschmidt’s opposite-field two-run shot off Stephen Fife

(4-4) in the first inning moved him into the NL lead with 34 home runs.

Yasiel Puig hit a solo home run calculated at 442 feet for the Dodgers, who have lost five of six and get one more chance to clinch in Arizona in the series finale today.

The Dodgers’ Adrian Gonzalez was ejected after Michael Young was called out at the plate in a close play in the sixth inning.

Brandon McCarthy (5-9) went six-plus innings to get the victory. Arizona broke open a close game with five runs in the eighth.

Tim Federowicz drove in two runs with a home run and an RBI double.

McCarthy gave up two runs, scattering 10 hits in six-plus innings.

Arizona led just 4-3 before blowing the game open against Belisario, the Dodgers’ sixth pitcher of the night. Adam Eaton had a two-run single, Aaron Hill and Martin Prado each an RBI double, and Chris Owings walked with the bases loaded.

Fife got the start in place of Clayton Kershaw, whose outing was pushed back three days to Saturday’s game at San Diego to give him some extra late-season rest. Fife did not make it out of the third, giving up a two-run homer to Goldschmidt in the first and a two more runs in the third as Arizona took a 4-0 lead. He

allowed four runs on six hits in

2ª innings, walking two and hitting two batters.

Gonzalez was tossed by second base umpire Andy Fletcher in the top of the sixth inning after Michael Young attempted to score from first on Gonzalez’s double. Young was called out by first base umpire Jim Joyce, catcher Miguel Montero taking shortstop Chris Owings’ relay throw and putting down the tag, although replays showed Young’s hand appeared to touch the plate first.

Puig opened the game with a ground-rule double but was picked off by Montero after wandering too far off second.

He atoned for it with a soaring home run far above the 413-foot sign in left-center to lead off the fourth. The Dodgers added a run later in the inning on consecutive singles by Carl Crawford, Young and Gonzalez to cut Arizona’s lead to 4-2.

Los Angeles pulled within one, 4-3, in the seventh when Nick Punto led off with a single and scored from third on Federowicz’s double down the left field line. Federowicz advanced to third with one out on Skip Schumaker’s sacrifice bunt but was stranded when pinch hitter Scott Van Slyke grounded into a double play.