diff options
author | Jeff King <peff@peff.net> | 2011-07-16 15:03:21 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2011-07-19 11:17:46 -0700 |
commit | 2faa15274d7bf474d3c382ce36a3e4b7b21bdaa4 (patch) | |
tree | af3ce12dc8282badae652f6bb51a936e3587bc2c /transport-helper.c | |
parent | 2c6b5d88287689e5a1acd5b5fefb8edd96931b6d (diff) | |
download | git-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>
Diffstat (limited to 'transport-helper.c')
-rw-r--r-- | transport-helper.c | 1 |
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); |