summaryrefslogtreecommitdiff
path: root/builtin
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2017-11-15 12:14:28 +0900
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-11-15 12:14:28 +0900
commitf116163171b875f9b58c6f6755bec85460e9b8b8 (patch)
treee937bf9c2851f7490bdce140e361422d2b46dc08 /builtin
parentMerge branch 'rs/sequencer-rewrite-file-cleanup' (diff)
parentbisect: fix memory leak when returning best element (diff)
downloadtgif-f116163171b875f9b58c6f6755bec85460e9b8b8.tar.xz
Merge branch 'ma/bisect-leakfix'
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.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/builtin/rev-list.c b/builtin/rev-list.c
index 8034d2eff2..4032eb3811 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);