Skip to content

Commit 5caf197

Browse files
carlosmngitster
authored andcommitted
fetch: free all the additional refspecs
Signed-off-by: Carlos Martín Nieto <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 703f05a commit 5caf197

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

builtin/fetch.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -918,7 +918,7 @@ static int fetch_one(struct remote *remote, int argc, const char **argv)
918918
atexit(unlock_pack);
919919
refspec = parse_fetch_refspec(ref_nr, refs);
920920
exit_code = do_fetch(transport, refspec, ref_nr);
921-
free(refspec);
921+
free_refspec(ref_nr, refspec);
922922
transport_disconnect(transport);
923923
transport = NULL;
924924
return exit_code;

0 commit comments

Comments
 (0)