Maddux (8-13) gave up two hits in six innings. The only run he surrendered came on Randy Winn's solo homer in the bottom of the fourth.
Takashi Saito earned his 18th save this season with a 1-2-3 ninth.
Losing pitcher Matt Cain (8-14) surrendered two earned runs and eight hits in seven innings with four walks and six strikeouts for the Giants, who have lost four of their last five games.
Toddler uninjured after being knocked over by Obama family dog
Man spent 15 hours in jail for plugging electric car into an outlet at a school