There's no need for us to write this loop manually when a helper
function can already do it.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
Jeff King 2019-04-13 01:54:09 -04:00 коммит произвёл Junio C Hamano
Родитель 533ddba47e
Коммит 259eddde6a
1 изменённых файлов: 1 добавлений и 4 удалений

Просмотреть файл

@ -630,10 +630,7 @@ static void filter_refs(struct fetch_pack_args *args,
}
oidset_clear(&tip_oids);
for (ref = unmatched; ref; ref = next) {
next = ref->next;
free(ref);
}
free_refs(unmatched);
*refs = newlist;
}