all repos — cgit @ 30802126d48e145191a281a7f43109edfbcf490f

a hyperfast web frontend for git written in c

ui-blob: fix resource leak: free before return

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

30802126d48e145191a281a7f43109edfbcf490f

parent

08a2b818f2bd3221a1685c28c62408d57b0993a7

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

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

@@ -99,6 +99,7 @@ if (!buf)

return -1; buf[size] = '\0'; html_raw(buf, size); + free(buf); return 0; }