Lincecum walked a batter and struck out three. Chicago’s first two runs came in the fifth inning, and the White Sox took a 3-2 lead in the seventh.
The Giants won it with one out in the ninth.
Hector Sanchez led off with a single. Juan Perez ran for him and scored on an opposite-field double to left by Nick Noonan. Brandon Hicks sacrificed Noonan to third and Joaquin Arias brought home the win with a hit to right-center.