Tim Lincecum allowed five runs for the second consecutive start, and the D-backs beat the Giants 7-2, extending their divison lead back to six games after losing the series opener.