mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-09 22:39:38 +00:00
merge: Plug memory leak
This commit is contained in:
parent
a1f5d691a2
commit
7a02e93e02
@ -1726,13 +1726,13 @@ int git_merge__iterators(
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!given_opts || !given_opts->metric)
|
|
||||||
git__free(opts.metric);
|
|
||||||
|
|
||||||
error = index_from_diff_list(out, diff_list,
|
error = index_from_diff_list(out, diff_list,
|
||||||
(opts.tree_flags & GIT_MERGE_TREE_SKIP_REUC));
|
(opts.tree_flags & GIT_MERGE_TREE_SKIP_REUC));
|
||||||
|
|
||||||
done:
|
done:
|
||||||
|
if (!given_opts || !given_opts->metric)
|
||||||
|
git__free(opts.metric);
|
||||||
|
|
||||||
git_merge_diff_list__free(diff_list);
|
git_merge_diff_list__free(diff_list);
|
||||||
git_iterator_free(empty_ancestor);
|
git_iterator_free(empty_ancestor);
|
||||||
git_iterator_free(empty_ours);
|
git_iterator_free(empty_ours);
|
||||||
|
Loading…
Reference in New Issue
Block a user