Edwin Jackson and Michael Bowden tied a major league record by combining to throw five wild pitches in an inning, and the San Francisco Giants got another big assist from a Cubs pitcher in a three-run 10th in Sunday's 10-7 victory at Wrigley Field.
The Cubs matched the record for wild pitches by a team in an inning during a four-run sixth that put San Francisco ahead 5-4, but the Giants had to rally again.
Chicago led 7-6 before Hunter Pence's solo homer off Shawn Camp (0-1) with two outs in the ninth.
One-out singles by Hector Sanchez and Brandon Crawford put runners at the corners in the 10th. With Buster Posey batting, Camp was called for a balk as he stepped off the rubber, giving San Francisco an 8-7 lead. Posey followed with an RBI single and, one out later, Marco Scutaro added a run-scoring double.
George Kontos (1-1) pitched a scoreless inning for the win, and Sergio Romo worked the 10th for his seventh save in eight chances.
Starlin Castro and Nate Schierholtz hit two-run homers in the first off Tim Lincecum for a 4-1 lead.
Jackson got in trouble in the sixth when he threw two wild pitches and Bowden added three more. The Cubs matched the mark set by the St. Louis Cardinals' Rick Ankiel in the 2000 division series and by Bert Cunningham of Buffalo in a Players League game in 1890. Jackson and Bowden also combined to walk four in the inning, with Jackson walking Pence and Brandon Belt to start it.
Gregor Blanco doubled in a run and Jackson allowed another run with his second wild pitch of the inning.
Bowden came in when Nick Noonan pinch hit for pitcher Tim Lincecum and threw a wild pitch, then Noonan hit a two-run single for a 5-4 lead. Bowden threw two more wild pitches, walked Angel Pagan and got Marcio Scutaro to hit into an inning-ending double play.
Blanco hit another RBI double in the seventh against Hector Rondon, and Alberto Gonzalez pulled the Cubs to 6-5 when he homered off Chad Gaudin in the bottom half. Chicago went ahead in the eighth when on Jeremy Affeldt's bases-loaded walk to Luis Valbuena and Gonazalez's sacrifice fly off Santiago Casilla.
Lincecum, 1-0 after three starts, allowed four runs and six hits in five innings and his ERA rose to 5.63.
Jackson gave up five runs -- four earned -- five hits and four walks in 5 1-3 innings. He's walked nine in his last two starts.