From 979db79a80f1926c677691b68eb22b4852a77b50 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Fri, 9 Oct 2015 14:55:49 +0200 Subject: ui-plain: fix resource leak: free before return Coverity-id: 13940 Signed-off-by: Christian Hesse --- ui-plain.c | 1 + 1 file changed, 1 insertion(+) diff --git a/ui-plain.c b/ui-plain.c index 0dd1a8b..4c73607 100644 --- a/ui-plain.c +++ b/ui-plain.c @@ -51,6 +51,7 @@ static int print_object(const unsigned char *sha1, const char *path) cgit_print_http_headers(); html_raw(buf, size); free(mimetype); + free(buf); return 1; } -- cgit 1.4.1-21-gabe81