diff options
author | Junio C Hamano <gitster@pobox.com> | 2016-08-08 14:48:43 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-08-08 14:48:44 -0700 |
commit | 19492555ca5859b43521cb489ff16cdfc9316f6e (patch) | |
tree | ea1dd6b49fe97293fb0cf1d3e40ceb582bbcffee | |
parent | Merge branch 'jh/clean-smudge-f-doc' (diff) | |
parent | blame: drop strdup of string literal (diff) | |
download | tgif-19492555ca5859b43521cb489ff16cdfc9316f6e.tar.xz |
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
-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); |