One bad inning cost Tim Lincecum and the San Francisco Giants a victory.