all repos — cgit @ 7320bfa893bdb8ff873c3827c3dac1ce0d4034ea

a hyperfast web frontend for git written in c

ui-blob: fix resource leak: free before return

Coverity-id: 13944
Signed-off-by: Christian Hesse <mail@eworm.de>
Christian Hesse mail@eworm.de
Sat, 10 Oct 2015 16:56:23 +0200
commit

7320bfa893bdb8ff873c3827c3dac1ce0d4034ea

parent

30802126d48e145191a281a7f43109edfbcf490f

1 files changed, 1 insertions(+), 0 deletions(-)

jump to
M ui-blob.cui-blob.c

@@ -171,4 +171,5 @@ }

ctx.page.filename = path; cgit_print_http_headers(); html_raw(buf, size); + free(buf); }