Updated

MILWAUKEE (AP) — Aubrey Huff hit a two-run single after another costly error by Brewers shortstop Alcides Escobar and the slumping San Francisco Giants beat Milwaukee 6-1 on Monday.

Buster Posey added a solo homer in the eighth for San Francisco, which won for the second time in 10 games.

Corey Hart extended his hitting streak to 20 games in the fifth, but Milwaukee finished 0 for 12 with runners in scoring position.

With the game tied at 1 in seventh, the Giants loaded the bases with one out against reliever Kameron Loe. Freddy Sanchez then hit a grounder to Escobar, who dropped the ball and failed to get a forceout.

Huff then singled to left against Zach Braddock to make it 4-1. Huff was stuck in a 3-for-17 rut with runners in scoring position before his clutch hit, which helped hand Loe (0-1) his first loss in the majors since Sept. 28, 2007.

Braddock also threw a wild pitch that allowed Sanchez to score.

San Francisco starter Jonathan Sanchez (7-6) struggled with his command, issuing six walks and throwing three wild pitches, but managed to go six innings to help his tired bullpen. He allowed five hits while throwing 115 pitches.

Milwaukee took a 1-0 lead in the second when Rickie Weeks walked to force in a run. The Brewers loaded the bases on two walks and a single.

Santiago Casilla, Chris Ray and Dan Runzler followed Sanchez with a scoreless inning apiece. San Francisco used eight relievers in Sunday's 15-inning loss to the Rockies that lasted a Coors Field-record 5 hours, 24 minutes.

Escobar committed consecutive errors with two outs in the third inning of Sunday's 7-1 loss to St. Louis that paved the way for five unearned runs. Worse, ace Yovani Gallardo ended up straining a muscle in his left side in the extended inning and likely will not be available to pitch in his first All-Star game.

In this one, Brewers starter Dave Bush didn't allow a run until Pablo Sandoval's tying two-out single to left in the sixth.

The 23-year-old Escobar, who was booed in his final at-bat in the eighth, has a team-high 14 errors this season.

NOTES: Hart's hitting record is 22 games. ... Brewers general manager Doug Melvin said his scouting department was in town conducting meetings. The Brewers likely will wait until after the homestand to decide what role they'll play in the trade market. ... Giants GM Brian Sabean is also in Milwaukee for this series. ... Both Gallardo and Melvin said the right-hander would take a wait-and-see approach with his injury, but manager Ken Macha said Gallardo would miss his next start and the All-Star game.