Updated

MILWAUKEE -- Aledmys Diaz hit a go-ahead pinch-homer in the seventh inning, Lance Lynn pitched six strong innings and the St. Louis Cardinals beat the Milwaukee Brewers 4-1 Saturday night.

Diaz, who didn't start at shortstop due to back stiffness and a sore shoulder, homered leading off the seventh against reliever Carlos Torres (0-2).

Lynn (2-1) gave up a run and three hits in six innings. He struck out seven and walked two.

Seung Hwan Oh got his fourth save in five tries.

Travis Shaw had an RBI double in the first for Milwaukee, and the Cardinals tied it at 1 in the fourth on Ryan Braun's two-base error. Braun made a diving catch on Kolten Wong's soft liner, but his throw to second from his knees sailed out of play down the first-base line, allowing a run to score.

St. Louis tacked on two runs in the ninth. Jedd Gyorko drove in a run with a triple and scored on an outfield throwing error.

The Brewers loaded the bases in the eighth, but Brett Cecil got Shaw to pop out to third to end the inning.

Milwaukee starter Chase Anderson didn't allow an earned run in six innings. He surrendered six hits, struck out six and walked one.

The Brewers failed to hit a home run for the first time in 14 games. Eric Thames, who leads Milwaukee with eight home runs, drew three walks.

TRAINER'S ROOM

Cardinals: OF Dexter Fowler, who left Friday night's game with right heel bursitis, remained out of the lineup. "Half a game is not going to be enough to straighten something out," Matheny said. "He came in today in better shape, which is encouraging. A good chance to get him back in there tomorrow."

Brewers: RHP Matt Garza (right groin strain) threw a bullpen session on Saturday as he prepares to make his first start of the season Monday against Cincinnati. Manager Craig Counsell said Garza threw 87 pitches in his last minor league rehab start and won't be held to a specific pitch count. "He's fine to do whatever. No restrictions," Counsell said.

UP NEXT

Cardinals: Mike Leake (2-1, 0.84 ERA) leads the National League in ERA. He is 4-4 with a 4.30 ERA in 13 career starts against Milwaukee. Leake was 2-0 with a 3.32 ERA with 20 strikeouts and two walks facing the Brewers last season.

Brewers: Jimmy Nelson (1-0, 4.42) is 0-7 with a 7.34 ERA in nine career games (eight starts) against St. Louis. He went 0-2 with a 4.50 ERA in three versus the Cardinals last season.