SAN DIEGO (AP) - Buster Posey hit a two-run home run and Tim Lincecum earned his first victory of the season for the San Francisco Giants, who had only three hits Sunday in beating San Diego 4-3 Sunday to snap a three-game losing streak.
Padres pitchers retired 23 of the final 24 batters and the Giants didn't get a hit after the second inning.
The Giants had scored only one run in each of their previous three games.
Lincecum (1-1) was chased by Nick Hundley's first homer of the season, on the first pitch of the seventh inning that pulled the Padres to 4-3. Lincecum allowed three runs and seven hits, struck out seven and walked three.
Sergio Romo pitched the ninth for his fifth save in as many chances.