List for cgit developers and users
 help / color / mirror / Atom feed
* [PATCH 1/6] ui-blob: fix resource leak: free before return
@ 2015-10-10 14:56 list
  2015-10-10 14:56 ` [PATCH 2/6] " list
                   ` (5 more replies)
  0 siblings, 6 replies; 11+ messages in thread
From: list @ 2015-10-10 14:56 UTC (permalink / raw)


From: Christian Hesse <mail at eworm.de>

Coverity-id: 13944
Signed-off-by: Christian Hesse <mail at eworm.de>
---
 ui-blob.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ui-blob.c b/ui-blob.c
index d3c3a10..9824c90 100644
--- a/ui-blob.c
+++ b/ui-blob.c
@@ -170,4 +170,5 @@ void cgit_print_blob(const char *hex, char *path, const char *head, int file_onl
 	ctx.page.filename = path;
 	cgit_print_http_headers();
 	html_raw(buf, size);
+	free(buf);
 }
-- 
2.6.1



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

end of thread, other threads:[~2015-10-10 19:41 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-10 14:56 [PATCH 1/6] ui-blob: fix resource leak: free before return list
2015-10-10 14:56 ` [PATCH 2/6] " list
2015-10-10 19:38   ` Jason
2015-10-10 14:56 ` [PATCH 3/6] ui-atom: fix resource leak: free allocation from cgit_repourl list
2015-10-10 14:56 ` [PATCH 4/6] ui-atom: fix resource leak: free before return list
2015-10-10 19:40   ` Jason
2015-10-10 14:56 ` [PATCH 5/6] ui-atom: fix resource leak: free allocation from cgit_pageurl list
2015-10-10 19:40   ` Jason
2015-10-10 14:56 ` [PATCH 6/6] cache: fix resource leak: close file handle before return list
2015-10-10 19:41   ` Jason
2015-10-10 19:39 ` [PATCH 1/6] ui-blob: fix resource leak: free " 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).