From: Jeff King Date: Sat, 16 Jul 2011 13:03:21 +0000 (+0200) Subject: transport-helper: fix minor leak in push_refs_with_export X-Git-Tag: v1.7.12.1~1^2~12 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/2faa15274d7bf474d3c382ce36a3e4b7b21bdaa4 transport-helper: fix minor leak in push_refs_with_export Signed-off-by: Sverre Rabbelier Acked-by: Jeff King Signed-off-by: Junio C Hamano --- diff --git a/transport-helper.c b/transport-helper.c index 660147f9e9..b560b64149 100644 --- a/transport-helper.c +++ b/transport-helper.c @@ -728,6 +728,7 @@ static int push_refs_with_export(struct transport *transport, strbuf_addf(&buf, "^%s", private); string_list_append(&revlist_args, strbuf_detach(&buf, NULL)); } + free(private); string_list_append(&revlist_args, ref->name);