neocgit

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

commit 7320bfa893bdb8ff873c3827c3dac1ce0d4034ea
parent 30802126d48e145191a281a7f43109edfbcf490f
Author: Christian Hesse <mail@eworm.de>
Date:   Sat, 10 Oct 2015 16:56:23 +0200

ui-blob: fix resource leak: free before return

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

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

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