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.7-rc0~61^2~20 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=2faa15274d7bf474d3c382ce36a3e4b7b21bdaa4;p=git.git 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 660147f9e..b560b6414 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);