Adam Wainwright pitched an eight-hitter, and David Freese and Matt Adams hit two-run home runs as the Cardinals beat the Pittsburgh Pirates 6-1 in the winner-take-all Game 5 of their National League Division Series.