Fix memory leak when running diff

* src/git2r_diff.c (git2r_diff_tree_to_wd, git2r_diff_tree_to_index,
  git2r_diff_tree_to_tree): Free allocated git_diff objects.