Updated

Tim Hudson pitched seven strong innings for his seventh consecutive victory and Paul Janish tripled home two runs to help the Atlanta Braves beat the San Francisco Giants 7-1 on Sunday.

Jason Heyward, Freddie Freeman and Juan Francisco homered for the Braves, who won their second straight after losing six of seven. Martin Prado and Brian McCann also drove in runs for the NL wild-card leaders.

Hudson (13-4) gave up five hits and beat the Giants for the sixth straight time. He walked one and struck out three. The right-hander has not lost since July 1.

Tim Lincecum (7-14) lasted five innings, allowing three runs and seven hits. He walked two and struck out four.

Brandon Crawford drove in the only run for the Giants, who dropped their second straight since winning five in a row. Hunter Pence had three hits and Buster Posey two.

Lincecum allowed two runs in the first inning and one in the fourth, his two worst innings of the season. He's given up 25 runs in the first and 24 in the fourth. Both of his walks came within the first four batters of the game.

Prado had an RBI groundout and McCann added a run-scoring single for one of his three hits.

Francisco's home run put Atlanta up 3-0 in the fourth and Janish's first triple of the year — the second of his career — made it 5-0 in the sixth.

The Giants loaded the bases with one out in the seventh, scoring on Crawford's sacrifice fly.

Heyward and Freeman homered on successive pitches from Clay Hensley in the ninth. Heyward, who has connected in three straight games, has been involved in all three back-to-back home runs for the Braves this season.

NOTES: Braves 3B Chipper Jones received a standing ovation in what might have been his final at-bat at AT&T Park. He grounded out to shortstop. ... Prado started at 2B, his fourth position in as many games (also SS, LF, 3B). ... The Braves send LHP Paul Maholm (11-8, 3.47 ERA) to the mound Monday night in San Diego. He ended a four-game losing streak to the Padres in their previous meeting. ... Hudson is 134-3 when given at least three runs of support. ... RHP Matt Cain (13-5, 2.83) goes for the Giants at Houston on Monday. Cain is 2-0 against the Astros this season, which includes his perfect game. ... San Francisco RHP Eric Hacker was optioned to Triple-A Fresno following Saturday night's game. The Giants recalled C Eli Whiteside to take his place. ... Posey has reached base with a hit or walk in 34 of his 38 games since the All-Star break.