From: Stefan Beller Date: Tue, 21 Oct 2014 01:50:44 +0000 (-0700) Subject: transport: free leaking head in transport_print_push_status() X-Git-Tag: v2.2.0-rc0~17^2~1 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=dc76c7f783694557b08f01d99793979c482aee1f;p=git 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 --- 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)