diff options
author | Junio C Hamano <gitster@pobox.com> | 2017-11-27 10:57:02 +0900 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-11-27 10:57:02 +0900 |
commit | 03e8004f0674a704330519d07fa84957989e2686 (patch) | |
tree | 22177bd90f08f6a8d6e4c35684a379b2e3c0c521 /builtin | |
parent | df481b99efb90e6786ed453ffefe5b6e2b6b1d57 (diff) | |
parent | f4e45cb3eb6fad4570ff63eecb37bae8102992fc (diff) | |
download | git-03e8004f0674a704330519d07fa84957989e2686.tar.gz git-03e8004f0674a704330519d07fa84957989e2686.tar.xz |
Merge branch 'ma/bisect-leakfix' into maint
Leak fixes.
* ma/bisect-leakfix:
bisect: fix memory leak when returning best element
bisect: fix off-by-one error in `best_bisection_sorted()`
bisect: fix memory leak in `find_bisection()`
bisect: change calling-convention of `find_bisection()`
Diffstat (limited to 'builtin')
-rw-r--r-- | builtin/rev-list.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/builtin/rev-list.c b/builtin/rev-list.c index c1c74d4a7..fb1c36af6 100644 --- a/builtin/rev-list.c +++ b/builtin/rev-list.c @@ -397,8 +397,7 @@ int cmd_rev_list(int argc, const char **argv, const char *prefix) if (bisect_list) { int reaches = reaches, all = all; - revs.commits = find_bisection(revs.commits, &reaches, &all, - bisect_find_all); + find_bisection(&revs.commits, &reaches, &all, bisect_find_all); if (bisect_show_vars) return show_bisect_vars(&info, reaches, all); |