[PATCH 2/6] ui-blob: fix resource leak: free before return

2015-10-10 Thread Christian Hesse
From: Christian Hesse 

Coverity-id: 13943
Signed-off-by: Christian Hesse 
---
 ui-blob.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/ui-blob.c b/ui-blob.c
index 9824c90..1ded839 100644
--- a/ui-blob.c
+++ b/ui-blob.c
@@ -99,6 +99,7 @@ int cgit_print_file(char *path, const char *head, int 
file_only)
return -1;
buf[size] = '\0';
html_raw(buf, size);
+   free(buf);
return 0;
 }
 
-- 
2.6.1

___
CGit mailing list
CGit@lists.zx2c4.com
http://lists.zx2c4.com/mailman/listinfo/cgit


Re: [PATCH 2/6] ui-blob: fix resource leak: free before return

2015-10-10 Thread Jason A. Donenfeld
Merged, thanks.
___
CGit mailing list
CGit@lists.zx2c4.com
http://lists.zx2c4.com/mailman/listinfo/cgit