summaryrefslogtreecommitdiff
path: root/transport.c
diff options
context:
space:
mode:
authorStefan Beller <sbeller@google.com>2014-10-21 01:50:44 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-10-21 18:01:18 (GMT)
commitdc76c7f783694557b08f01d99793979c482aee1f (patch)
treed68d892eef06d919047bf2651bf66a4c88c8d200 /transport.c
parent3c2dc76f015b4d52ef02a08c59a4546d00b475e1 (diff)
downloadgit-dc76c7f783694557b08f01d99793979c482aee1f.zip
git-dc76c7f783694557b08f01d99793979c482aee1f.tar.gz
git-dc76c7f783694557b08f01d99793979c482aee1f.tar.bz2
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.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/transport.c b/transport.c
index 662421b..cb62cb6 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)