Right-handed reliever Cory Gearrin defused a potentially toxic situation for the Giants during Wednesday's 6-2 win over the Arizona Diamondbacks, striking out the side in the sixth inning to preserve a strong start by Matt Cain.