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>
This commit is contained in:
parent
2c6b5d8828
commit
2faa15274d
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user