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.
Ray Liotta sues skin care company over use of likeness
Millions of Getty images now available for free via embed tool