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:
Junio C Hamano 2016-08-08 14:48:43 -07:00
commit 19492555ca

View File

@ -2808,7 +2808,7 @@ parse_done:
lno = prepare_lines(&sb);
if (lno && !range_list.nr)
string_list_append(&range_list, xstrdup("1"));
string_list_append(&range_list, "1");
anchor = 1;
range_set_init(&ranges, range_list.nr);