SAN FRANCISCO -- Matt Duffy singled in Gregor Blanco with two outs in the ninth inning to cap a two-run rally off closer Steve Cishek and lift the San Francisco Giants to a 3-2 win over the Miami Marlins on Sunday.