builtin/fetch.c: don't free remote->name after fetch
authorKeith McGuigan <kmcguigan@twopensource.com>
Tue, 14 Jun 2016 18:28:56 +0000 (14:28 -0400)
committerJunio C Hamano <gitster@pobox.com>
Tue, 14 Jun 2016 18:58:05 +0000 (11:58 -0700)
Make fetch's string_list of remote names own all of its string items
(strdup'ing when necessary) so that it can deallocate them safely
when clearing.

Signed-off-by: Keith McGuigan <kmcguigan@twopensource.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
No differences found