From dc76c7f783694557b08f01d99793979c482aee1f Mon Sep 17 00:00:00 2001 From: Stefan Beller Date: Mon, 20 Oct 2014 18:50:44 -0700 Subject: transport: free leaking head in transport_print_push_status() Found by scan.coverity.com (ID: 1248110) Signed-off-by: Stefan Beller Signed-off-by: Junio C Hamano --- transport.c | 1 + 1 file changed, 1 insertion(+) (limited to 'transport.c') diff --git a/transport.c b/transport.c index 662421bb5e..cb62cb6886 100644 --- a/transport.c +++ b/transport.c @@ -774,6 +774,7 @@ void transport_print_push_status(const char *dest, struct ref *refs, *reject_reasons |= REJECT_NEEDS_FORCE; } } + free(head); } void transport_verify_remote_names(int nr_heads, const char **heads) -- cgit v1.2.1