ui-repolist: fix memory leak

This commit is contained in:
Christian Hesse 2016-10-10 20:17:51 +02:00 提交者 Jason A. Donenfeld
父節點 32c27e8877
當前提交 7fea585e25

查看文件

@ -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("<a href='");
html_attr(cgit_currenturl());
html_attr(currenturl);
html("?q=");
html_url_arg(ctx.repo->owner);
html("'>");
html_txt(ctx.repo->owner);
html("</a>");
free(currenturl);
}
html("</td><td>");
}