| -rw-r--r-- | ui-repolist.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/ui-repolist.c b/ui-repolist.c index 7158bf7..1d9a7f7 100644 --- a/ui-repolist.c +++ b/ui-repolist.c @@ -343,15 +343,13 @@ void cgit_print_repolist(void) html_txt(ctx.repo->owner); cgit_close_filter(ctx.repo->owner_filter); } else { - char *currenturl = cgit_currenturl(); html("<a href='"); - html_attr(currenturl); + html_attr(cgit_currenturl()); html("?q="); html_url_arg(ctx.repo->owner); html("'>"); html_txt(ctx.repo->owner); html("</a>"); - free(currenturl); } html("</td><td>"); } |