From 30802126d48e145191a281a7f43109edfbcf490f Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Sat, 10 Oct 2015 16:56:24 +0200 Subject: ui-blob: fix resource leak: free before return 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 d3c3a10..70a671e 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; } -- cgit v1.2.3-57-g22cb