提交 5caf1973 编写于 作者: C Carlos Martín Nieto 提交者: Junio C Hamano

fetch: free all the additional refspecs

Signed-off-by: NCarlos Martín Nieto <cmn@elego.de>
Signed-off-by: NJunio C Hamano <gitster@pobox.com>
上级 703f05ad
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册