Zito allowed four hits and one earned run in five innings, with a strikeout and no walks. The 35-year-old pitcher lowered his ERA while with the Giants by a point to 4.62, finishing with a seven-year record of 63-80 while facing harsh criticism for most of his largely disappointing stint.
"I was little worried there for a while, I didn't think I was ever going to be able to show my face in San Francisco again," Zito said. "I was like, 'Oh, man, they have such great spots here and restaurants, I'd love to enjoy them later in my career, later in life, but I didn't think I'd be able to. I think now I'll come back and at least have people have smiles on their faces."
Bochy let Zito know Tuesday he would get one final start in front of the home fans.
"It's been a joy to be with Barry," Bochy said. "I couldn't be happier for him right now to win tonight."
Zito surrendered consecutive singles then Matt Kemp's RBI double in the fourth to prompt a mound visit from pitching coach Dave Righetti, then got through the inning still holding a lead.
Kemp pulled the Dodgers within two runs with an RBI single in the eighth. Then Sergio Romo finished for his 37th save in 42 opportunities leaving a runner at second.
The Giants' six runs were as many as they had total over their previous 49 innings — and Nolasco matched the six he had given up in five career starts at AT&T Park before Wednesday.
Following Posey's leadoff double in the second, Nolasco plunked Hunter Pence in the left leg a day after Matt Cain hit Yasiel Puig with a pitch during Tuesday's 2-1 Dodgers win.
Pablo Sandoval singled to load the bases and Abreu tripled two batters later. Sandoval hit his 14th homer in the fourth.
Notes: The Giants clinched the season series with a 10-8 lead, doing so in back-to-back years for the first time since 2002-03. ... Giants 2B Marco Scutaro, last season's NLCS MVP, will have surgery Friday to repair a tendon problem in his left pinkie and have a pin inserted to help him heal. Shut down for the season Tuesday, Scutaro batted .297 with two homers and 31 RBIs in 127 games. "I tried to do whatever I can to help the team win games," he said.