MILWAUKEE -- Ryan Sweeney hit his fourth home run of the season and Scott Feldman earned a quality start as the Cubs halted a nine-game losing streak at Milwaukee's Miller Park with a 5-4 victory over the Brewers Wednesday night.
Feldman (7-6) scattered six hits and didn't walk a batter in six innings, allowed three runs and struck out three to win for the second time in three starts.
The Cubs' won despite going 2-for-13 with runners in scoring position and stranding 11 runners. Chicago had 11 hits against Milwaukee pitchers Wednesday, getting two each from Luis Calbuena, Starlin Castro and Anthony Rizzo.
After not allowing an earned run in his last three starts, Brewers starter Yovani Gallardo (6-7) never quite got going against the Cubs, who applied the pressure with the opening at-bat.
Gallardo worked out of a a bases-loaded jam in the first inning by striking out Brian Bogusevic but back-to-back singles to open the second both came around to score as Chicago took a 2-0 lead.
The Brewers got a run back on Aramis Ramirez's home run to lead off the bottom of the inning but Ryan Sweeney did the same for Chicago in the third, restoring the two-run lead.
Milwaukee again drew within one, this time on an RBI double by Norichika Aoki that scored Caleb Gindl. Aoki stole third but was stranded when Feldman struck out Jean Segura and Jonathan Lucroy to end the inning.
A Rickie Weeks' error led to two more runs in the fourth, giving Chicago a 5-2 lead but Gallardo had thrown 96 pitches by that point and after giving up three earned runs on eight hits and four walks with five strikeouts, he gave way to Tom Gorzelanny and the Brewers bullpen to start the fifth.
Chicago failed to score against Milwaukee's relievers but the Brewers' offense couldn't accomplish anything against James Russell or Carlos Villanueva.
Milwaukee threatened in the ninth against closer Kevin Gregg. Juan Francisco led off with a solo home run to make it 5-4 and Rickie Weeks singled then moved to third on a Logan Schafer sacrifice.
Yuniesky Betancourt chopped a grounder to Luis Valbuena, who threw home to get Weeks and pinch-hitter Scooter Gennett flew out to the warning track in right to close out Gregg's 12th save in as many chances this season.
NOTES: Milwaukee selected the contract of RHP Johnny Hellweg from Triple-A Nashville. Hellweg will start Friday in place of Alfredo Figaro, who went on the 15-day disabled list Tuesday with a strained right oblique. ... SS Starlin Castro returned to the Cubs lineup Wednesday a day after his streak of consecutive games played ended at 269. ... Aramis Ramirez's second inning home run was the 2,000th hit of his career. ... The Cubs are 9-25 against NL Central opponents this season.