| -rw-r--r-- | ui-repolist.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/ui-repolist.c b/ui-repolist.c index 1d9a7f7..30915df 100644 --- a/ui-repolist.c +++ b/ui-repolist.c @@ -275,7 +275,6 @@ void cgit_print_repolist(void) int i, columns = 3, hits = 0, header = 0; char *last_section = NULL; char *section; - char *repourl; int sorted = 0; if (!any_repos_visible()) { @@ -331,9 +330,7 @@ void cgit_print_repolist(void) !sorted && section ? "sublevel-repo" : "toplevel-repo"); cgit_summary_link(ctx.repo->name, ctx.repo->name, NULL, NULL); html("</td><td>"); - repourl = cgit_repourl(ctx.repo->url); - html_link_open(repourl, NULL, NULL); - free(repourl); + html_link_open(cgit_repourl(ctx.repo->url), NULL, NULL); html_ntxt(ctx.cfg.max_repodesc_len, ctx.repo->desc); html_link_close(); html("</td><td>"); |