SAN FRANCISCO — Pinch-hitter Alen Hanson had a tying, two-run homer off Brad Boxberger with two outs in the ninth inning, Brandon Crawford singled home Andrew McCutchen in the 10th and the San Francisco Giants beat the Arizona Diamondbacks 5-4 Wednesday for their sixth win in seven games.
Arizona led 4-2 when Boxberger walked Mac Williamson with one out in the ninth. Nick Hundley struck out, Hanson batted for Austin Jackson and turned on a fastball over the middle of the plate, driving it over the right-field wall. Hanson has five home runs in 52 at-bats with the Giants this season.
Boxberger blew a save for the second time in 16 chances. Arizona had been 29-0 when leading after eight innings.
McCutchen doubled off Andrew Chafin (0-2) with two outs in the 10th, a catchable drive that Jarrod Dyson misjudged and allowed to drop behind him on the warning track in center field. Crawford worked the count full and grounded a single between first and second, into right field, as McCutchen scored standing up.
Hunter Strickland (3-2) got out of a two-on jam in the 10th, striking out Ketel Marte, then retiring Nick Ahmed on a popout with runners at the corners. Strickland walked two — one intentionally — and threw two wild pitches in his only inning.
San Francisco took two of three from Arizona, ending a streak of five series losses to the Diamondbacks, and won for the seventh time in eight home games.
Paul Goldschmidt had four hits, including three doubles, and two RBIs. He has raised his average to .233 from .198 before play on May 23.
Arizona starter Clay Buchholz gave up two runs and seven hits in seven innings with seven strikeouts and one walk. The 33-year-old right-hander has a 1.88 ERA since signing with the Diamondbacks on May 4, three days after the two-time All-Star was released by Kansas City.
Pablo Sandoval hit his fifth home run of the season in the fifth, a drive to right-center that would have traveled 447 feet unimpeded, according to Statcast. Sandoval and Buchholz were teammates on Boston.
Giants starter Chris Stratton gave up three runs and seven hits in four-plus innings, leaving with a 3-2 deficit.
FREAK SHOW 2.0?
Giants manager Bruce Bochy said he is open to approaching the team's front office about a possible role in the organization for Tim Lincecum, a two-time Cy Young Award winner from the Giants who was released Tuesday by Texas.
"He's somebody that's dear to all of our hearts," Bochy said. "I would always have a spot for Timmy, somewhere."
Diamondbacks: RHP Randall Delgado (oblique strain) pitched an inning for Class A Visalia on Tuesday. Manager Torey Lovullo said Delgado's fastball topped out at 93 mph. ... LHPs Jorge De La Rosa (Achilles tendon soreness) and Robbie Ray (oblique) threw bullpen sessions at the team's extended spring training facility in Scottsdale, Arizona.
Giants: RHPs Johnny Cueto (right elbow inflammation) and Jeff Samardzija (right shoulder tightness) both threw on flat ground from about 100 feet. Both are scheduled for their first bullpens on Friday. . 1B Brandon Belt, expected to be out three weeks after an appendectomy on Friday, did about 45 minutes of cardio work, Bochy said.
Diamondbacks: RHP Zack Greinke (4-4, 3.44 ERA) is to start Friday's series opener in Colorado. The four-time All-Star has held opponents to a .216 batting average in his last seven starts.
Giants: LHP Andrew Suarez (2-4, 4.74) is slated to pitch Friday's opener against Washington. The 25-year-old rookie threw seven innings of three-hit ball in a 2-0 win against Philadelphia last Saturday.