From: Christian Hesse Date: Mon, 10 Oct 2016 18:17:51 +0000 (+0200) Subject: ui-repolist: fix memory leak X-Git-Url: https://gitweb.ps.run/ps-cgit/commitdiff_plain/7fea585e252ee7a584e4b2d679009518bab48ebe ui-repolist: fix memory leak --- 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(""); }