SAN FRANCISCO -- The San Francisco Giants needed four innings to figure out Cleveland starter Zach McAllister.
Hunter Pence hit a two-run single in San Francisco's four-run fifth, leading the Giants to a 5-3 victory over the Indians on Saturday.
"That one inning, it just got contagious," Giants manager Bruce Bochy said.
McAllister (3-1) retired 12 in a row before Michael Morse led off the fifth with a single to center. Morse advanced to third on Brandon Crawford's one-out single and scored on Gregor Blanco's pinch-hit single that came on a first-pitch fastball.
"Coming off the bench, it's not that easy to do," Blanco said. "In that situation to get a pinch hit and drive one in ... you just got to be aggressive."
Angel Pagan had a sacrifice fly before Pence's two-out hit gave the Giants a 4-3 lead.
McAllister left after Brandon Belt struck out to end the inning. He allowed five hits, struck out six and walked one after winning his previous three starts.
Buster Posey added a solo homer in the sixth as San Francisco earned its third consecutive win. Posey, who won the NL MVP award in 2012, went 1 for 3 and is batting .103 (4 for 39) over his last 13 games.
"I was happy for Buster," Bochy said. "You go through these tough streaks and it's not easy."
Giants starter Tim Lincecum lasted just 4 2/3 innings, but managed to lower his ERA to 5.96. He was charged with three runs, two earned, and nine hits.
"We did a really good job of making (Lincecum) work," Cleveland manager Terry Francona said. "We just weren't able to get that one more hit to tack on."
Lincecum has pitched just 25 2/3 innings in five starts in his first season since he signed a $35 million, two-year contract over the winter.
Copyright 2014 Associated Press. All Rights Reserved.