CHICAGO (AP) Zach Davies allowed two hits over six innings and Martin Maldonado drove in two runs to lead Milwaukee to a 4-1 victory over Chicago on Wednesday night, snapping the Brewers' nine-game losing streak to the Cubs.

Jorge Soler homered for the Cubs, who lost for the second time in nine games and finished with three hits total.

Davies (2-2) allowed two singles in the second inning, walked one and struck out four.

More from FoxSports

Francisco Rodriguez pitched the ninth and picked up his 35th save in 37 opportunities.

Luis Sardinas gave the Brewers a 1-0 lead with an RBI single just out of the reach of a diving Kris Bryant at third base.

The Brewers took a 3-0 lead in the seventh when Khris Davis followed Adam Lind's double with an RBI single. Two walks by reliever Justin Grimm loaded the bases and Maldonado hit a sacrifice fly.

Maldonado had an RBI single in the ninth.

Soler homered in the seventh off reliever Will Smith, his 10th of the season.

The Brewers couldn't solve Cubs starter Kyle Hendricks (7-7), who retired the first 14 hitters. Jean Segura finally reached in the fifth when he legged out an infield single and he scored on Sardinas' hit.

Hendricks went six-plus innings, striking out eight and allowing three runs and four hits.

TRAINER'S ROOM

Brewers: RHP Wily Peralta (left oblique) is out for the season. Manager Craig Counsell said Peralta's oblique has ''flared up again.'' . Counsell said OF Ryan Braun's back ''didn't progress like we wanted to'' when he took batting practice Tuesday and that Milwaukee is ''kind of in a holding pattern'' with the injury. . C Jonathan Lucroy (concussion) worked out at first base before the game.

UP NEXT

Cubs: LHP Jon Lester (10-11, 3.46 ERA) will be looking for his third win in September and his second against the Pirates after limiting Pittsburgh to one hit over five innings on Sept. 15.

Brewers: RHP Taylor Jungmann (9-6, 3.31 ERA) will face the Cardinals looking for his first win since Sept. 3. Jungmann has taken no-decisions in his last two outings during which he has given up nine earned runs.