mirror of
https://git.zx2c4.com/cgit
synced 2024-11-22 08:28:42 +00:00
ui-repolist: fix memory leak
This commit is contained in:
parent
32c27e8877
commit
7fea585e25
@ -343,13 +343,15 @@ void cgit_print_repolist(void)
|
|||||||
html_txt(ctx.repo->owner);
|
html_txt(ctx.repo->owner);
|
||||||
cgit_close_filter(ctx.repo->owner_filter);
|
cgit_close_filter(ctx.repo->owner_filter);
|
||||||
} else {
|
} else {
|
||||||
|
char *currenturl = cgit_currenturl();
|
||||||
html("<a href='");
|
html("<a href='");
|
||||||
html_attr(cgit_currenturl());
|
html_attr(currenturl);
|
||||||
html("?q=");
|
html("?q=");
|
||||||
html_url_arg(ctx.repo->owner);
|
html_url_arg(ctx.repo->owner);
|
||||||
html("'>");
|
html("'>");
|
||||||
html_txt(ctx.repo->owner);
|
html_txt(ctx.repo->owner);
|
||||||
html("</a>");
|
html("</a>");
|
||||||
|
free(currenturl);
|
||||||
}
|
}
|
||||||
html("</td><td>");
|
html("</td><td>");
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user