[PATCH 1/1] Don't free remote->name after fetch
- From
- kmcguigan@twopensource.com <kmcguigan@twopensource.com>
- Date
- Jun 13, 2016, 18:17 UTC
- Message-ID
- <1465841837-31604-1-git-send-email-kmcguigan@twopensource.com>
From: Keith McGuigan <kmcguigan@twopensource.com>
The string_list gets populated with the names from the remotes[] array, which are not dup'd and the list does not own.
Signed-of-by: Keith McGuigan <kmcguigan@twopensource.com> --- builtin/fetch.c | 2 -- 1 file changed, 2 deletions(-)
diff --git a/builtin/fetch.c b/builtin/fetch.c index 630ae6a1bb78..181da5a2e7a3 100644 --- a/builtin/fetch.c +++ b/builtin/fetch.c @@ -1347,8 +1347,6 @@ int cmd_fetch(int argc, const char **argv, const char *prefix) argv_array_clear(&options); } - /* All names were strdup()ed or strndup()ed */ - list.strdup_strings = 1; string_list_clear(&list, 0); close_all_packs();
-- 2.8.0.rc3.95.gc8e4e3a