From mboxrd@z Thu Jan 1 00:00:00 1970 From: list at eworm.de (Christian Hesse) Date: Fri, 9 Oct 2015 13:15:51 +0200 Subject: [PATCH 8/8] ui-shared: fix resource leak: free allocation from cgit_hosturl In-Reply-To: <1444389351-2154-1-git-send-email-list@eworm.de> References: <1444389351-2154-1-git-send-email-list@eworm.de> Message-ID: <1444389351-2154-8-git-send-email-list@eworm.de> From: Christian Hesse Signed-off-by: Christian Hesse --- ui-shared.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ui-shared.c b/ui-shared.c index 09c34fd..c04f380 100644 --- a/ui-shared.c +++ b/ui-shared.c @@ -730,7 +730,7 @@ void cgit_print_docstart(void) return; } - const char *host = cgit_hosturl(); + char *host = cgit_hosturl(); html(cgit_doctype); html("\n"); html("\n"); @@ -755,7 +755,7 @@ void cgit_print_docstart(void) html("