ui-atom: fix resource leak: free before return Coverity-id: 13946 Signed-off-by: Christian Hesse <mail@eworm.de>
Christian Hesse mail@eworm.de
Sat, 10 Oct 2015 16:56:26 +0200
1 files changed,
2 insertions(+),
1 deletions(-)
jump to
M
ui-atom.c
→
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 @@ free_commit_list(commit->parents);
commit->parents = NULL; } html("</feed>\n"); + free(host); }