Skip to content

Commit 2faa152

Browse files
peffgitster
authored andcommitted
transport-helper: fix minor leak in push_refs_with_export
Signed-off-by: Sverre Rabbelier <[email protected]> Acked-by: Jeff King <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 2c6b5d8 commit 2faa152

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

transport-helper.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -728,6 +728,7 @@ static int push_refs_with_export(struct transport *transport,
728728
strbuf_addf(&buf, "^%s", private);
729729
string_list_append(&revlist_args, strbuf_detach(&buf, NULL));
730730
}
731+
free(private);
731732

732733
string_list_append(&revlist_args, ref->name);
733734

0 commit comments

Comments
 (0)