Merge branch 'jk/parseopt-string-list'
A small memory leak in the command line parsing of "git blame" has been plugged. * jk/parseopt-string-list: blame: drop strdup of string literal
This commit is contained in:
commit
19492555ca
@ -2808,7 +2808,7 @@ parse_done:
|
|||||||
lno = prepare_lines(&sb);
|
lno = prepare_lines(&sb);
|
||||||
|
|
||||||
if (lno && !range_list.nr)
|
if (lno && !range_list.nr)
|
||||||
string_list_append(&range_list, xstrdup("1"));
|
string_list_append(&range_list, "1");
|
||||||
|
|
||||||
anchor = 1;
|
anchor = 1;
|
||||||
range_set_init(&ranges, range_list.nr);
|
range_set_init(&ranges, range_list.nr);
|
||||||
|
Loading…
Reference in New Issue
Block a user