aboutsummaryrefslogtreecommitdiff
path: root/builtin/fetch.c
diff options
context:
space:
mode:
authorCarlos Martín Nieto <cmn@elego.de>2011-10-08 00:51:06 +0200
committerJunio C Hamano <gitster@pobox.com>2011-10-07 16:02:19 -0700
commit5caf19733713b3f04105d1949467014345e6a240 (patch)
treeb191f3b302d5fe8f51fbae89c1d4446794fc401b /builtin/fetch.c
parent703f05ad5835cff92b12c29aecf8d724c8c847e2 (diff)
downloadgit-5caf19733713b3f04105d1949467014345e6a240.tar.gz
git-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>
Diffstat (limited to 'builtin/fetch.c')
-rw-r--r--builtin/fetch.c2
1 files changed, 1 insertions, 1 deletions
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;