SAN FRANCISCO -- Jace Peterson continued his torrid pace and once again came through with the game on the line.

Peterson tripled with the bases loaded in Atlanta's four-run ninth inning to lead the Braves to a 7-5 victory over the San Francisco Giants on Sunday.

Freddie Freeman sparked the rally with his second home run in as many at bats against Giants closer Santiago Casilla (4-1), who blew his third save.

"I put a good swing on it and it worked out for us," said Peterson, who has five hits in his last two games. "Freddie hit the home run to get it going. No one in this dugout ever feels like we're out of a game."

Andrelton Simmons walked and Brandon Crawford mishandled Christian Bethancourt's potential double-play grounder. Pinch hitter A.J. Pierzynski blooped a single into right to load the bases for Peterson.

"I was trying to get two before I caught the ball," Crawford said. "It wasn't hit (hard) and I came in to get it, maybe too hard."

Nick Masset (1-1) pitched 1 2/3 scoreless innings for the win. Jason Grilli got the final three outs for his 15th save in 16 chances.

"A lot of stuff can happen," Braves manager Fredi Gonzalez said. "There was a double play ball, game over. But it takes a bad hop and Crawford can't come up with it and all of a sudden we have more life."

Freeman, the current active consecutive games leader with 218, entered the game defensively in the seventh.

"I'm not a big fan of off days but I guess it was a good idea today," Freeman said. "Hopefully I can carry the momentum of that home run, and the one a couple of days ago, into Arizona."

Joe Panik hit a go-ahead, two-run homer in the seventh, and Brandon Belt and Crawford also hit home runs for Giants.

Madison Bumgarner, who retired the first 12 batters, turned in a quality start but did not figure in the decision.

He allowed three runs and five hits in 6 1/3 innings and was pulled after giving up a two-run homer to Juan Uribe and singles to Chris Johnson, who had two hits and drove in a run, and Simmons.

Uribe hit his second homer in as many days.

Braves starter Julio Teheran allowed three runs and four hits in six innings. He walked four and struck out one.

Belt and Crawford hit back-to-back home runs leading off the second. Johnson's RBI single in the fifth cut the Giants lead in half and Uribe's homer put the Braves ahead.

Matt Duffy led off the seventh with a double and Donnie Veal took over for Teheran, giving up a game-tying single to Gregor Blanco and Panik's home run.

ISHIKAWA TO SACRAMENTO

Travis Ishikawa cleared waivers and accepted an assignment to Triple-A Sacramento. Ishikawa, whose three-run homer in the NLCS sent the Giants to the World Series, opened the year on the disabled list with a back injury. "I thought there was a good chance we would lose him," Giants manager Bruce Bochy said. "But the fact that he is going to stay is nice to know."

TRAINER'S ROOM

Braves: OF Joey Terdoslavich (left wrist) was 1 for 3, with a double, for Double-A Carolina on Saturday night in a rehab start.

Giants: RHP Jake Peavy's rehab assignment remains on hold after he experienced some back discomfort in his previous start. . RHP Matt Cain (flexor tendon strain) continues his throwing program.

UP NEXT:

Braves: LHP Alex Wood (3-2, 3.50) starts at the Arizona Diamondbacks on Monday night. He's thrown particularly well in his past two starts and did not let a stomach virus slow him down. He's allowed two earned runs in his past 14 innings, both wins.

Giants: Ryan Vogelsong (4-2, 4.24) takes the mound when the Pittsburgh Pirates visit on Monday night. He's 2/3 with a 3.38 ERA against his former team.