From: Christian Hesse Date: Sat, 10 Oct 2015 14:56:24 +0000 (+0200) Subject: ui-blob: fix resource leak: free before return X-Git-Url: https://gitweb.ps.run/ps-cgit/commitdiff_plain/30802126d48e145191a281a7f43109edfbcf490f ui-blob: fix resource leak: free before return Coverity-id: 13943 Signed-off-by: Christian Hesse --- diff --git a/ui-blob.c b/ui-blob.c index d3c3a10..70a671e 100644 --- a/ui-blob.c +++ b/ui-blob.c @@ -99,6 +99,7 @@ int cgit_print_file(char *path, const char *head, int file_only) return -1; buf[size] = '\0'; html_raw(buf, size); + free(buf); return 0; }