mirror of
https://github.com/git/git
synced 2024-08-24 18:26:02 +00:00
Merge branch 'rs/bisect-start-leakfix' into maint-2.38
Code clean-up that results in plugging a leak. * rs/bisect-start-leakfix: bisect--helper: plug strvec leak
This commit is contained in:
commit
3ae0094a91
|
@ -765,11 +765,10 @@ static enum bisect_error bisect_start(struct bisect_terms *terms, const char **a
|
|||
strbuf_read_file(&start_head, git_path_bisect_start(), 0);
|
||||
strbuf_trim(&start_head);
|
||||
if (!no_checkout) {
|
||||
struct strvec argv = STRVEC_INIT;
|
||||
const char *argv[] = { "checkout", start_head.buf,
|
||||
"--", NULL };
|
||||
|
||||
strvec_pushl(&argv, "checkout", start_head.buf,
|
||||
"--", NULL);
|
||||
if (run_command_v_opt(argv.v, RUN_GIT_CMD)) {
|
||||
if (run_command_v_opt(argv, RUN_GIT_CMD)) {
|
||||
res = error(_("checking out '%s' failed."
|
||||
" Try 'git bisect start "
|
||||
"<valid-branch>'."),
|
||||
|
|
Loading…
Reference in a new issue