diff options
author | Eric Sunshine <sunshine@sunshineco.com> | 2016-08-02 06:52:53 -0400 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2016-08-03 08:52:46 -0700 |
commit | aa59e14b23b3c075e7f50eae73d9c6812ed96959 (patch) | |
tree | f3266b13aa025f6431c916924330f2be7de78264 /builtin/pack-refs.c | |
parent | 64093fc06a871f71316211a2aea6bb46c49b20ab (diff) | |
download | git-aa59e14b23b3c075e7f50eae73d9c6812ed96959.tar.gz git-aa59e14b23b3c075e7f50eae73d9c6812ed96959.tar.xz |
blame: drop strdup of string literal
This strdup was added as part of 58dbfa2 (blame: accept
multiple -L ranges, 2013-08-06) to be consistent with
parse_opt_string_list(), which appends to the same list.
But as of 7a7a517 (parse_opt_string_list: stop allocating
new strings, 2016-06-13), we should stop using strdup (to
match parse_opt_string_list, and for all the reasons
described in that commit; namely that it does nothing useful
and causes us to leak the memory).
Signed-off-by: Eric Sunshine <sunshine@sunshineco.com>
Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/pack-refs.c')
0 files changed, 0 insertions, 0 deletions