зеркало из https://github.com/microsoft/git.git
Merge branch 'js/ort-clean-up-after-failed-merge' into maint
Plug memory leaks in the failure code path in the "merge-ort" merge strategy backend. source: <pull.1307.v2.git.1659114727.gitgitgadget@gmail.com> * js/ort-clean-up-after-failed-merge: merge-ort: do leave trace2 region even if checkout fails merge-ort: clean up after failed merge
This commit is contained in:
Коммит
c2d62d0c7d
|
@ -4294,6 +4294,8 @@ void merge_switch_to_result(struct merge_options *opt,
|
|||
if (checkout(opt, head, result->tree)) {
|
||||
/* failure to function */
|
||||
result->clean = -1;
|
||||
merge_finalize(opt, result);
|
||||
trace2_region_leave("merge", "checkout", opt->repo);
|
||||
return;
|
||||
}
|
||||
trace2_region_leave("merge", "checkout", opt->repo);
|
||||
|
@ -4304,6 +4306,9 @@ void merge_switch_to_result(struct merge_options *opt,
|
|||
/* failure to function */
|
||||
opt->priv = NULL;
|
||||
result->clean = -1;
|
||||
merge_finalize(opt, result);
|
||||
trace2_region_leave("merge", "record_conflicted",
|
||||
opt->repo);
|
||||
return;
|
||||
}
|
||||
opt->priv = NULL;
|
||||
|
|
Загрузка…
Ссылка в новой задаче