Paul Goldschmidt hit a two-run homer, Tommy Edman added a solo shot among his three hits and the St. Louis Cardinals held off the Cincinnati Reds 5-4 on Sunday to split their four-game series.

Jack Flaherty's scoreless streak was snapped at 23 innings, but he allowed only one run in five frames as St. Louis stayed in first place in the NL Central, just ahead of the Chicago Cubs.

More Images
St. Louis Cardinals' Lane Thomas (35) hits an RBI single off Cincinnati Reds starting pitcher Alex Wood during the fourth inning of a baseball game, Sunday, Aug. 18, 2019, in Cincinnati. (AP PhotoGary Landers)

Paul Goldschmidt hit a two-run homer, Tommy Edman added a solo shot among his three hits and the St. Louis Cardinals held off the Cincinnati Reds 5-4 on Sunday to split their four-game series.

St. Louis Cardinals' Lane Thomas, center, is tagged out by Cincinnati Reds second baseman Freddy Galvis (3) on a steal-attempt during the fourth inning of a baseball game, Sunday, Aug. 18, 2019, in Cincinnati. (AP PhotoGary Landers)

Reds rookie Aristides Aquino went 0 for 2 with two walks after hitting 10 home runs in his previous 11 games.

Cincinnati Reds starting pitcher Alex Wood (40) throws against the St. Louis Cardinals during the first inning of a baseball game, Sunday, Aug. 18, 2019, in Cincinnati. (AP PhotoGary Landers)

Left-hander Alex Wood made his fifth start for the Reds after spending the first four months of the season on the injured list with a lower back problem. Wood (1-2) gave up eight hits and five runs — four earned — in five innings, with one walk and six strikeouts.

Cincinnati Reds' Eugenio Suarez (7) reacts as he crosses home plate with a solo home run off St. Louis Cardinals starting pitcher Jack Flaherty during the first inning of a baseball game, Sunday, Aug. 18, 2019, in Cincinnati. (AP PhotoGary Landers)

TRAINER'S ROOM

Cincinnati Reds' Eugenio Suarez (7) is congratulated by Aristides Aquino (44) on a solo home run off St. Louis Cardinals starting pitcher Jack Flaherty during the first inning of a baseball game, Sunday, Aug. 18, 2019, in Cincinnati. (AP PhotoGary Landers)

Reds: RHP Trevor Bauer (10-9) goes Monday night against the San Diego Padres. He allowed a career-high nine runs in 4 1/3 innings last time out in Washington.

Carlos Martinez gave up three straight hits and two runs to open the ninth but hung on for his 14th save, striking out Eugenio Suàrez to end it. Suàrez homered early but also committed a costly error at third base and grounded into an inning-ending double play with the bases loaded in the seventh.

St. Louis Cardinals' Lane Thomas (35) hits an RBI single off Cincinnati Reds starting pitcher Alex Wood during the fourth inning of a baseball game, Sunday, Aug. 18, 2019, in Cincinnati. (AP PhotoGary Landers)

St. Louis Cardinals' Lane Thomas (35) hits an RBI single off Cincinnati Reds starting pitcher Alex Wood during the fourth inning of a baseball game, Sunday, Aug. 18, 2019, in Cincinnati. (AP PhotoGary Landers)

Reds rookie Aristides Aquino went 0 for 2 with two walks after hitting 10 home runs in his previous 11 games.

Suàrez went deep in the first inning, his first at-bat after missing Saturday's game with a sprained left thumb. That run was the first against Flaherty (7-6) since a 5-3 win over Houston on July 26. The right-hander had thrown seven scoreless innings in each of his three previous August starts.

He improved to 3-0 in four starts this month after allowing three hits with three walks and five strikeouts.

St. Louis Cardinals' Lane Thomas, center, is tagged out by Cincinnati Reds second baseman Freddy Galvis (3) on a steal-attempt during the fourth inning of a baseball game, Sunday, Aug. 18, 2019, in Cincinnati. (AP PhotoGary Landers)

St. Louis Cardinals' Lane Thomas, center, is tagged out by Cincinnati Reds second baseman Freddy Galvis (3) on a steal-attempt during the fourth inning of a baseball game, Sunday, Aug. 18, 2019, in Cincinnati. (AP PhotoGary Landers)

Left-hander Alex Wood made his fifth start for the Reds after spending the first four months of the season on the injured list with a lower back problem. Wood (1-2) gave up eight hits and five runs — four earned — in five innings, with one walk and six strikeouts.

Goldschmidt wiped out a 1-0 deficit with his 28th homer, driving in Edman in the third. Yadier Molina reached on Suàrez's two-base throwing error and scored on Lane Thomas' single in the fourth. Edman hit his fifth home run with one out in the fifth. One out later, Goldschmidt and Marcell Ozuna teamed up on back-to-back doubles for a 5-1 lead.

The Reds loaded the bases with one out in the seventh against Giovanny Gallegos. Andrew Miller came on to walk in a run before John Gant got Suàrez to bounce into a double play.

Cincinnati Reds starting pitcher Alex Wood (40) throws against the St. Louis Cardinals during the first inning of a baseball game, Sunday, Aug. 18, 2019, in Cincinnati. (AP PhotoGary Landers)

Cincinnati Reds starting pitcher Alex Wood (40) throws against the St. Louis Cardinals during the first inning of a baseball game, Sunday, Aug. 18, 2019, in Cincinnati. (AP PhotoGary Landers)

TRAINER'S ROOM

Reds: Flaherty hit CF Nick Senzel just above the left elbow with a pitch. Senzel stayed in the game.

UP NEXT

Cardinals: RHP Dakota Hudson (11-6) pitches Monday night at home against the Brewers in a matchup of NL Central contenders. Milwaukee has roughed up Hudson for 15 hits and 10 runs — nine earned — in eight innings over two starts this season.

Cincinnati Reds' Eugenio Suarez (7) reacts as he crosses home plate with a solo home run off St. Louis Cardinals starting pitcher Jack Flaherty during the first inning of a baseball game, Sunday, Aug. 18, 2019, in Cincinnati. (AP PhotoGary Landers)

Cincinnati Reds' Eugenio Suarez (7) reacts as he crosses home plate with a solo home run off St. Louis Cardinals starting pitcher Jack Flaherty during the first inning of a baseball game, Sunday, Aug. 18, 2019, in Cincinnati. (AP PhotoGary Landers)

Reds: RHP Trevor Bauer (10-9) goes Monday night against the San Diego Padres. He allowed a career-high nine runs in 4 1/3 innings last time out in Washington.

More AP MLB: https://apnews.com/MLB and https://twitter.com/AP_Sports

Cincinnati Reds' Eugenio Suarez (7) is congratulated by Aristides Aquino (44) on a solo home run off St. Louis Cardinals starting pitcher Jack Flaherty during the first inning of a baseball game, Sunday, Aug. 18, 2019, in Cincinnati. (AP PhotoGary Landers)

Cincinnati Reds' Eugenio Suarez (7) is congratulated by Aristides Aquino (44) on a solo home run off St. Louis Cardinals starting pitcher Jack Flaherty during the first inning of a baseball game, Sunday, Aug. 18, 2019, in Cincinnati. (AP PhotoGary Landers)