From: Carlos Martín Nieto Date: Fri, 7 Oct 2011 22:51:06 +0000 (+0200) Subject: fetch: free all the additional refspecs X-Git-Tag: v1.7.8-rc0~14^2~4 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=5caf19733713b3f04105d1949467014345e6a240;p=git.git fetch: free all the additional refspecs Signed-off-by: Carlos Martín Nieto Signed-off-by: Junio C Hamano --- diff --git a/builtin/fetch.c b/builtin/fetch.c index e422ced92..605d1bfd6 100644 --- a/builtin/fetch.c +++ b/builtin/fetch.c @@ -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;