neocgit

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

commit 896cd69dde04832f6b551f681b92bd4557092427
parent ad006918a570da32457461a5e59289b611d9a732
Author: Christian Hesse <mail@eworm.de>
Date:   Fri,  9 Oct 2015 13:15:44 +0200

ui-tree: fix resource leak: free before return

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

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

diff --git a/ui-tree.c b/ui-tree.c @@ -143,6 +143,7 @@ static int ls_item(const unsigned char *sha1, struct strbuf *base, htmlf("<tr><td colspan='3'>Bad object: %s %s</td></tr>", name, sha1_to_hex(sha1)); + free(name); return 0; } }