From: Christian Hesse Date: Sat, 10 Oct 2015 14:56:27 +0000 (+0200) Subject: ui-atom: fix resource leak: free allocation from cgit_pageurl X-Git-Url: https://gitweb.ps.run/ps-cgit/commitdiff_plain/ed5dccbeaab5c8b30e1c2fe8890fa098537a2621 ui-atom: fix resource leak: free allocation from cgit_pageurl Coverity-id: 13945 Signed-off-by: Christian Hesse --- diff --git a/ui-atom.c b/ui-atom.c index fab4b0f..e186299 100644 --- a/ui-atom.c +++ b/ui-atom.c @@ -53,14 +53,17 @@ static void add_entry(struct commit *commit, const char *host) cgit_print_date(info->author_date, FMT_ATOMDATE, 0); html("\n"); if (host) { + char *pageurl; html("\n"); + free(pageurl); } htmlf("%s\n", hex); html("\n");