From mboxrd@z Thu Jan 1 00:00:00 1970 From: list at eworm.de (Christian Hesse) Date: Sat, 10 Oct 2015 16:56:27 +0200 Subject: [PATCH 5/6] ui-atom: fix resource leak: free allocation from cgit_pageurl In-Reply-To: <1444488988-20082-1-git-send-email-list@eworm.de> References: <1444488988-20082-1-git-send-email-list@eworm.de> Message-ID: <1444488988-20082-5-git-send-email-list@eworm.de> From: Christian Hesse 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"); -- 2.6.1