fetch_refs_via_pack: free extra copy of refs
commit626df76e3df3a0d8ecee07098706547648e6c96f
authorJeff King <peff@peff.net>
Thu, 19 Mar 2015 20:38:35 +0000 (19 16:38 -0400)
committerJunio C Hamano <gitster@pobox.com>
Thu, 19 Mar 2015 21:11:35 +0000 (19 14:11 -0700)
tree23bc39b0faaa3cddaa308f9c9c5f74236a9ebf7a
parentc3c17bf10725149e2f806c73aceb522509afcc83
fetch_refs_via_pack: free extra copy of refs

When fetch_refs_via_pack calls fetch_pack(), we pass a
list of refs to fetch, and the function returns either a
copy of that list, with the fetched items filled in, or
NULL. We check the return value to see whether the fetch was
successful, but do not otherwise look at the copy, and
simply leak it at the end of the function.

Signed-off-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
transport.c