SAN FRANCISCO (AP) Buster Posey hit a three-run homer in the sixth, Tim Hudson pitched six scoreless innings and the San Francisco Giants ended a six-game home losing streak to Arizona, beating the Diamondbacks 5-1 on Sunday.
Alejandro De Aza and Jarrett Parker also drove in runs for the Giants, who snapped a 35-inning scoreless streak at home against Arizona pitching.
David Peralta homered, and Ender Inciarte had three hits for the Diamondbacks, who had won three of their previous four games.
Hudson (8-8) gave up four hits in improving to 11-2 with a 2.19 ERA in 16 starts against the Diamondbacks. He walked three and struck out three. Hudson won his third consecutive decision and has a 2.10 ERA over his past four starts. He also earned career win No. 222.
Jeremy Hellickson (9-10) took a one-hitter into the sixth.