You may be missing some code here (or in the calling layers) taking care of releasing the `GitMergeResultHandle` and `GitMergeHeadHandle`