Then, with two outs, the Pirates closer surrendered back-to-back doubles to Ryan Ludwick and Cozart as the National League Central champion Reds took the rubber match of a three-game series.
Sean Marshall (5-5) collected the victory and Aroldis Chapman struck out two en route to his 37th save.
The Reds tied the Washington Nationals for the top seed in the National League.
Garrett Jones hit a two-run shot for Pittsburgh.
2014: NFL Cheerleaders [PHOTOS]
Michael Sam cut from the Dallas Cowboys