After the Marlins capped off a rally in the ninth the night before, it was the Diamondbacks’ turn Tuesday as Paul Goldschmidt belted a tie-breaking home run to lead off the bottom of the ninth to snap a four-game losing streak in front of 21,067 at Chase Field. The Diamondbacks didn’t want to shake up their bullpen by naming one of their relievers to this start in place of Tyler Skaggs, who was replacing the injured Brandon McCarthy before he was sent back to Triple-A Reno, and right-hander Randall Delgado proved to be a capable call-up. His only major trouble spot was the fourth inning when the Marlins tagged him for two runs on four hits, including a triple from Derek Dietrich. But the Diamondbacks erased that deficit in the bottom of the inning when Miguel Montero drew a two-out walk and Martin Prado followed with a home run to left field. Delgado retired the order in the next three innings before exiting after seven with 91 pitches. He scattered eight hits and struck out six. The bullpen kept it scoreless the rest of the way, with David Hernandez picking up the win (3-4), and that set up Goldschmidt for the game-winning homer on the second pitch of the at-bat. Fast finish: Goldschmidt’s home run was the first walk-off homer in his career but his second game-ending hit of the season. The hit signaled the 20th comeback win of the season for the Diamondbacks and fifth walk-off victory. Delgado’s night: This was Delgado’s first start of the season but his second appearance with the Diamondbacks, and he looked more comfortable this go-round. He allowed a pair of hits in the second, and the heart of the Marlins order got to him in the fourth, but he was otherwise reliable in his promotion from Triple-A Reno. Prado vs. the Marlins: Prado’s two-run homer in the fourth was his fifth of the season and first long ball since April 29. He’s batting .355 in his past 34 games against the Marlins. Stanton silenced: After a two-homer performance in Monday’s series opener, Marlins right fielder Giancarlo Stanton wasn’t as effective Tuesday. He went 0 for 4 with two strikeouts. Risky running: Marlins shortstop Adeiny Hechavarria dropped what looked like a clear double just inside the third-base line to open the seventh and as the ball tinkered around in the left-field corner, Hechavarria attempted to stretch the hit into a triple. But Hechavarria was out after a one-hopper from Jason Kubel and a strong tag from Prado. Delgado needed only seven more pitches to secure the final two outs of the inning.