From 2faa15274d7bf474d3c382ce36a3e4b7b21bdaa4 Mon Sep 17 00:00:00 2001 From: Jeff King Date: Sat, 16 Jul 2011 15:03:21 +0200 Subject: [PATCH] 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 --- transport-helper.c | 1 + 1 file changed, 1 insertion(+) 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); -- 2.11.4.GIT