diff options
author | Stefan Beller <sbeller@google.com> | 2014-10-20 18:50:44 -0700 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-10-21 11:01:18 -0700 |
commit | dc76c7f783694557b08f01d99793979c482aee1f (patch) | |
tree | d68d892eef06d919047bf2651bf66a4c88c8d200 /transport.c | |
parent | 3c2dc76f015b4d52ef02a08c59a4546d00b475e1 (diff) | |
download | git-dc76c7f783694557b08f01d99793979c482aee1f.tar.gz |
transport: free leaking head in transport_print_push_status()
Found by scan.coverity.com (ID: 1248110)
Signed-off-by: Stefan Beller <sbeller@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'transport.c')
-rw-r--r-- | transport.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) |