diff options
author | Junio C Hamano <gitster@pobox.com> | 2016-08-09 00:48:43 +0300 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-08-09 00:48:44 +0300 |
commit | 19492555ca5859b43521cb489ff16cdfc9316f6e (patch) | |
tree | ea1dd6b49fe97293fb0cf1d3e40ceb582bbcffee /builtin | |
parent | 104985c59eb5f318daf6732af9a2b7a9f63d0857 (diff) | |
parent | aa59e14b23b3c075e7f50eae73d9c6812ed96959 (diff) |
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
Diffstat (limited to 'builtin')
-rw-r--r-- | builtin/blame.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/blame.c b/builtin/blame.c index 2e7b3030c6..7ec7823430 100644 --- a/builtin/blame.c +++ b/builtin/blame.c @@ -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); |