From: Christian Hesse Date: Sat, 10 Oct 2015 14:56:25 +0000 (+0200) Subject: ui-atom: fix resource leak: free allocation from cgit_repourl X-Git-Tag: v0.12~22 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=97da17b783697b4c5430f130ab449121d0692530;p=cgit ui-atom: fix resource leak: free allocation from cgit_repourl Coverity-id: 13947 Signed-off-by: Christian Hesse --- diff --git a/ui-atom.c b/ui-atom.c index e2b39ee..d7138fb 100644 --- a/ui-atom.c +++ b/ui-atom.c @@ -125,11 +125,13 @@ void cgit_print_atom(char *tip, char *path, int max_count) html_txt(ctx.repo->desc); html("\n"); if (host) { + char *repourl = cgit_repourl(ctx.repo->url); html("\n"); + free(repourl); } while ((commit = get_revision(&rev)) != NULL) { add_entry(commit, host);