From 7320bfa893bdb8ff873c3827c3dac1ce0d4034ea Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Sat, 10 Oct 2015 16:56:23 +0200 Subject: ui-blob: fix resource leak: free before return 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 70a671e..1ded839 100644 --- a/ui-blob.c +++ b/ui-blob.c @@ -171,4 +171,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); } -- cgit v1.2.3