summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Carlos Martín Nieto <cmn@elego.de>2011-10-08 00:51:06 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2011-10-07 16:02:19 -0700
commit5caf19733713b3f04105d1949467014345e6a240 (patch)
treeb191f3b302d5fe8f51fbae89c1d4446794fc401b
parentGit 1.7.7 (diff)
downloadtgif-5caf19733713b3f04105d1949467014345e6a240.tar.xz
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>
-rw-r--r--builtin/fetch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/builtin/fetch.c b/builtin/fetch.c
index e422ced929..605d1bfd66 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;