From 7fea585e252ee7a584e4b2d679009518bab48ebe Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Mon, 10 Oct 2016 20:17:51 +0200 Subject: ui-repolist: fix memory leak --- ui-repolist.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'ui-repolist.c') diff --git a/ui-repolist.c b/ui-repolist.c index 1d9a7f7..7158bf7 100644 --- a/ui-repolist.c +++ b/ui-repolist.c @@ -343,13 +343,15 @@ void cgit_print_repolist(void) html_txt(ctx.repo->owner); cgit_close_filter(ctx.repo->owner_filter); } else { + char *currenturl = cgit_currenturl(); html(""); html_txt(ctx.repo->owner); html(""); + free(currenturl); } html("