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>
This commit is contained in:
parent
703f05ad58
commit
5caf197337
@ -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…
Reference in New Issue
Block a user