List for cgit developers and users
 help / color / mirror / Atom feed
* [PATCH 1/3] ui-repolist: fix memory leak
@ 2016-10-10 18:36 list
  2016-10-10 18:36 ` [PATCH 2/3] shared: remove unused function strrpart() list
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: list @ 2016-10-10 18:36 UTC (permalink / raw)


From: Christian Hesse <mail at eworm.de>

Signed-off-by: Christian Hesse <mail at eworm.de>
---
 ui-repolist.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/ui-repolist.c b/ui-repolist.c
index 1d9a7f7..7158bf7 100644
--- a/ui-repolist.c
+++ b/ui-repolist.c
@@ -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>");
 		}
-- 
2.10.0



^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2016-10-12 11:18 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-10-10 18:36 [PATCH 1/3] ui-repolist: fix memory leak list
2016-10-10 18:36 ` [PATCH 2/3] shared: remove unused function strrpart() list
2016-10-12 11:18   ` Jason
2016-10-10 18:36 ` [PATCH 3/3] shared: remove unused function strlpart() list
2016-10-12 11:18   ` Jason
2016-10-12 11:18 ` [PATCH 1/3] ui-repolist: fix memory leak Jason

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).