Add internal function to free memory of merge_heads

* src/git2r_merge.c (git2r_merge_heads_free): Free each git_merge_head
  in merge_heads and free memory of merge_heads.

Signed-off-by: Stefan Widgren <stefan.widgren@gmail.com>