PITTSBURGH -- Yovani Gallardo and two relievers combined on a five-hit shutout as the Milwaukee Brewers edged the Pittsburgh Pirates 1-0 on Sunday.

Gallardo (4-4) allowed four hits in seven innings. The right-hander struck out eight and walked one while winning for just the second time in his last 11 starts.

Gallarado improved his career against the Pirates to 12-4 and is now 6-2 with a 1.79 ERA at PNC Park.

Right-hander Rob Wooten got two outs in the eighth inning and closer Francisco Rodriguez nailed down the final four outs for his 19th save, including getting right fielder Josh Harrison to line out to center field with runners on first and third to end the game.

Catcher Jonathan Lucroy had three of the Brewers' four hits, including two doubles, and scored the only run.

Milwaukee (38-26), which leads the National League Central by five games, is 10-3 against Pittsburgh (29-33) this season.

Left-hander Jeff Locke (0-1) pitched well in defeat after being recalled from Triple-A Indianapolis prior to the game. He gave up one run and three hits in seven innings with five strikeouts and one walk.

Locke was a 10-game winner and an All-Star last season. However, nine of those wins came in the first half before he faded so badly late in the season that he was left off the Pirates' postseason roster.

Pittsburgh center fielder Andrew McCutchen had two hits.

Milwaukee scored the game's lone run in the seventh inning. Lucroy led off with a double, took third on center fielder Carlos Gomez's deep fly to center field and scored on third baseman Aramis Ramirez's tap out to first base.

Rodriguez was called on to replace Wooten in the eighth to face catcher Russell Martin with two outs and a runner on third base. Martin got caught looking at a third strike to end the inning on what appeared to be a pitch low and inside.

Martin slammed his bat and helmet to the ground and was ejected by home plate umpire Ed Hickox as was manager Clint Hurdle, who also vehemently argued the call.

NOTES: Pirates RHP Gerrit Cole was placed on the 15-day disabled list with right shoulder fatigue, opening a roster spot for LHP Jeff Locke. ... Pittsburgh 1B Ike Davis, mired in a 3-for-34 slump, began a stretch where he will be held out of the starting lineup for three games in favor of 1B Gaby Sanchez. ... Pirates LF Starling Marte returned to the lineup after being relegated to reserve duty in the previous four games and went 0-for-3, extending his streak of hitless at-bats to 23. ... Brewers RHP Marco Estrada (5-2, 4.10 ERA) will start Tuesday night against Mets RHP Daisuke Matsuzaka (2-0, 3.21 ERA) in the opener of a three-game series at New York. Milwaukee is off Monday. ... The Pirates begin a four-game home series with the Chicago Cubs on Monday night as RHP Charlie Morton (2-7 , 3.31 ERA) opposes RHP Edwin Jackson (4-5, 4.59 ERA).