summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2011-07-16 15:03:21 +0200
committerJunio C Hamano <gitster@pobox.com>2011-07-19 11:17:46 -0700
commit2faa15274d7bf474d3c382ce36a3e4b7b21bdaa4 (patch)
treeaf3ce12dc8282badae652f6bb51a936e3587bc2c
parent2c6b5d88287689e5a1acd5b5fefb8edd96931b6d (diff)
downloadgit-2faa15274d7bf474d3c382ce36a3e4b7b21bdaa4.tar.gz
transport-helper: fix minor leak in push_refs_with_export
Signed-off-by: Sverre Rabbelier <srabbelier@gmail.com> Acked-by: Jeff King <peff@peff.net> Signed-off-by: Junio C Hamano <gitster@pobox.com>
-rw-r--r--transport-helper.c1
1 files changed, 1 insertions, 0 deletions
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);