Mike Montgomery followed with four scoreless innings and allowed one hit in his first save.
Heyward went deep for the second time in three games and Zobrist added two singles as the Cubs took three of four games in a set with the Giants and finished a homestand at 7-2.