mirror of
https://github.com/git/git
synced 2024-08-27 19:49:21 +00:00
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 @@ int cmd_blame(int argc, const char **argv, const char *prefix)
|
||||||
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 a new issue