Skip to content

Commit

Permalink
transport-helper: fix minor leak in push_refs_with_export
Browse files Browse the repository at this point in the history
Signed-off-by: Sverre Rabbelier <srabbelier@gmail.com>
Acked-by: Jeff King <peff@peff.net>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
  • Loading branch information
Jeff King authored and Junio C Hamano committed Jul 19, 2011
1 parent 2c6b5d8 commit 2faa152
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions transport-helper.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 2faa152

Please sign in to comment.