DENVER >> No lead is safe at Coors Field, as the San Francisco Giants demonstrated Thursday for the second time in as many games.

Again erasing an early deficit with a late-inning rally, the Giants beat the Rockies 6-4 to complete a three-game sweep.

Pinch-hitting for Casey Schmitt, Brandon Crawford lined the game-tying double into the right-center field gap, and LaMonte Wade Jr. lofted a fly ball deep enough to score the go-ahead run from third. Like the previous late-inning comeback, the ninth inning started with a pair of free passes as Pierce Johnson struggled to find the strike zone.

Blake Sabol, who drew the leadoff walk, raced home from second on Crawford’s double, and Mike Yastrzemski, who reached on another walk after Sabol, made it to third, where he was in position to score what amounted to the game-winning run on Wade’s sac fly to right field.

Entering this series, the Giants were 1-25 when trailing after seven innings. They have won the past two games, despite falling into that scenario both times.

Alex Cobb was only beginning to settle in when he left the game after the fifth inning, despite throwing only 83 pitches.