From mboxrd@z Thu Jan 1 00:00:00 1970 From: list at eworm.de (Christian Hesse) Date: Sat, 10 Oct 2015 16:56:23 +0200 Subject: [PATCH 1/6] ui-blob: fix resource leak: free before return Message-ID: <1444488988-20082-1-git-send-email-list@eworm.de> From: Christian Hesse Coverity-id: 13944 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 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