neocgit

a more 'modern' version of cgit
Log | Files | Refs | Submodules | README | LICENSE | git clone https://git.ne02ptzero.me/git/neocgit

commit 979db79a80f1926c677691b68eb22b4852a77b50
parent 51338f7658f81ffc120969108ed88d97c1888617
Author: Christian Hesse <mail@eworm.de>
Date:   Fri,  9 Oct 2015 14:55:49 +0200

ui-plain: fix resource leak: free before return

Coverity-id: 13940
Signed-off-by: Christian Hesse <mail@eworm.de>

Diffstat:
Mui-plain.c | 1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git 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; }