summaryrefslogtreecommitdiff
path: root/transport-helper.c
diff options
context:
space:
mode:
authorJeff King <peff@peff.net>2011-07-16 13:03:21 (GMT)
committerJunio C Hamano <gitster@pobox.com>2011-07-19 18:17:46 (GMT)
commit2faa15274d7bf474d3c382ce36a3e4b7b21bdaa4 (patch)
treeaf3ce12dc8282badae652f6bb51a936e3587bc2c /transport-helper.c
parent2c6b5d88287689e5a1acd5b5fefb8edd96931b6d (diff)
downloadgit-2faa15274d7bf474d3c382ce36a3e4b7b21bdaa4.zip
git-2faa15274d7bf474d3c382ce36a3e4b7b21bdaa4.tar.gz
git-2faa15274d7bf474d3c382ce36a3e4b7b21bdaa4.tar.bz2
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>
Diffstat (limited to 'transport-helper.c')
-rw-r--r--transport-helper.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/transport-helper.c b/transport-helper.c
index 660147f..b560b64 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);