Tim Lincecum walked seven, matching a career worst, yet still managed to get the win when Pablo Sandoval and Hunter Pence homered to lead the San Francisco Giants to a 5-3 victory over the Los Angeles Dodgers on Wednesday night.