[PATCH 1/1] Don't free remote->name after fetch
From: <hidden>
Date: 2016-06-16 06:55:51
Subsystem:
the rest · Maintainer:
Linus Torvalds
From: <hidden>
Date: 2016-06-16 06:55:51
Subsystem:
the rest · Maintainer:
Linus Torvalds
From: Keith McGuigan <redacted> 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 [off-list ref] --- 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