Browse Source

fetch: free all the additional refspecs

Signed-off-by: Carlos Martín Nieto <cmn@elego.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
maint
Carlos Martín Nieto 13 years ago committed by Junio C Hamano
parent
commit
5caf197337
  1. 2
      builtin/fetch.c

2
builtin/fetch.c

@ -918,7 +918,7 @@ static int fetch_one(struct remote *remote, int argc, const char **argv) @@ -918,7 +918,7 @@ static int fetch_one(struct remote *remote, int argc, const char **argv)
atexit(unlock_pack);
refspec = parse_fetch_refspec(ref_nr, refs);
exit_code = do_fetch(transport, refspec, ref_nr);
free(refspec);
free_refspec(ref_nr, refspec);
transport_disconnect(transport);
transport = NULL;
return exit_code;

Loading…
Cancel
Save