* [PATCH 1/1] ui-repolist: fix memory leak
@ 2016-10-07 13:12 list
2016-10-07 19:43 ` Jason
0 siblings, 1 reply; 3+ messages in thread
From: list @ 2016-10-07 13:12 UTC (permalink / raw)
From: Christian Hesse <mail at eworm.de>
Signed-off-by: Christian Hesse <mail at eworm.de>
---
ui-repolist.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/ui-repolist.c b/ui-repolist.c
index 30915df..1d9a7f7 100644
--- a/ui-repolist.c
+++ b/ui-repolist.c
@@ -275,6 +275,7 @@ 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()) {
@@ -330,7 +331,9 @@ 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>");
- html_link_open(cgit_repourl(ctx.repo->url), NULL, NULL);
+ repourl = cgit_repourl(ctx.repo->url);
+ html_link_open(repourl, NULL, NULL);
+ free(repourl);
html_ntxt(ctx.cfg.max_repodesc_len, ctx.repo->desc);
html_link_close();
html("</td><td>");
--
2.10.0
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 1/1] ui-repolist: fix memory leak
2016-10-07 13:12 [PATCH 1/1] ui-repolist: fix memory leak list
@ 2016-10-07 19:43 ` Jason
2016-10-07 21:01 ` list
0 siblings, 1 reply; 3+ messages in thread
From: Jason @ 2016-10-07 19:43 UTC (permalink / raw)
Looks good to me.
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 1/1] ui-repolist: fix memory leak
2016-10-07 19:43 ` Jason
@ 2016-10-07 21:01 ` list
0 siblings, 0 replies; 3+ messages in thread
From: list @ 2016-10-07 21:01 UTC (permalink / raw)
"Jason A. Donenfeld" <Jason at zx2c4.com> on Fri, 2016/10/07 21:43:
> Looks good to me.
Queued in ch/for-jason.
--
main(a){char*c=/* Schoene Gruesse */"B?IJj;MEH"
"CX:;",b;for(a/* Best regards my address: */=0;b=c[a++];)
putchar(b-1/(/* Chris cc -ox -xc - && ./x */b/42*2-3)*42);}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 455 bytes
Desc: OpenPGP digital signature
URL: <http://lists.zx2c4.com/pipermail/cgit/attachments/20161007/c659634f/attachment.asc>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-10-07 21:01 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-07 13:12 [PATCH 1/1] ui-repolist: fix memory leak list
2016-10-07 19:43 ` Jason
2016-10-07 21:01 ` list
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).