From ed5dccbeaab5c8b30e1c2fe8890fa098537a2621 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Sat, 10 Oct 2015 16:56:27 +0200 Subject: ui-atom: fix resource leak: free allocation from cgit_pageurl Coverity-id: 13945 Signed-off-by: Christian Hesse --- ui-atom.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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"); -- cgit v1.2.3-70-g09d2