commit | 144e3c6085cfea95868a799ee976ed221dd86d8a | [log] [tgz] |
---|---|---|
author | Christian Hesse <mail@eworm.de> | Sat Oct 10 16:56:26 2015 +0200 |
committer | Jason A. Donenfeld <Jason@zx2c4.com> | Sat Oct 10 21:40:05 2015 +0200 |
tree | beceadf5941fc112b13eb243d028dbb4769c8060 | |
parent | 97da17b783697b4c5430f130ab449121d0692530 [diff] |
ui-atom: fix resource leak: free before return Coverity-id: 13946 Signed-off-by: Christian Hesse <mail@eworm.de>
diff --git a/ui-atom.c b/ui-atom.c index d7138fb..fab4b0f 100644 --- a/ui-atom.c +++ b/ui-atom.c
@@ -80,7 +80,7 @@ void cgit_print_atom(char *tip, char *path, int max_count) { - const char *host; + char *host; const char *argv[] = {NULL, tip, NULL, NULL, NULL}; struct commit *commit; struct rev_info rev; @@ -140,4 +140,5 @@ commit->parents = NULL; } html("</feed>\n"); + free(host); }