Chase Headley's grand slam in the seventh inning put the game out of reach for Arizona, as the San Diego Padres took the rubber match of a three-game set, defeating the Diamondbacks 8-2.

Patrick Corbin (5-7) took the loss, giving up three runs on six hits over 5 1/3 innings. While in the game, he received just one run of support, which came in the third inning off an RBI-groundout from Jason Kubel.

With the St. Louis Cardinals winning earlier on Sunday, the loss puts the Diamondbacks 6 1/2 games out of a wild-card spot.

Andrew Werner (2-1) got the win and posted his fourth straight quality outing. He pitched 6 1/3 solid innings, allowing just one run on four hits while striking out six.

Carlos Quentin and Chris Denorfia each hit solo homers and scored two runs apiece for the Padres, who have won four of their last five games.

The Padres scored first, bringing home two runs in the second inning. Quentin led the inning off with a double and following a walk to Jesus Guzman, Cameron Maybin ripped a double to left to score Quentin. Guzman advanced to third and scored on an Andy Parrino sacrifice fly.

Headley came to the plate in the seventh with the bases loaded after Denorfia reached on an error in between walks issued to John Baker and Logan Forsythe. Headley cleared the bases with a homer to right field and Quentin followed with a home run of his own to left to make the score 8-1.

Anthony Bass came on to pitch the final frame for San Diego and allowed the D'Backs to manufacture a run before recording the last out.

He and gave up a base hit to Montero to start the inning then issued a walk to Chris Johnson before John McDonald moved Montero to third on a ground ball force out at second base. Gerardo Parra then grounded out, moving Montero across home plate for Arizona's second run.

Game Notes

The Padres are 18-7 at Petco Park since 7/16 ... Headley hit his third home run of the series and his 27th of the season ...Denorfia extended his hitting streak to 10 games ... Sunday's decision clinched the season series for San Diego.