diff options
author | Christian Hesse | 2015-10-09 13:15:44 +0200 |
---|---|---|
committer | Jason A. Donenfeld | 2015-10-09 13:58:25 +0200 |
commit | 896cd69dde04832f6b551f681b92bd4557092427 (patch) | |
tree | 62cfea388610819c05ea5e38b0c5b56385a30f08 | |
parent | ad006918a570da32457461a5e59289b611d9a732 (diff) | |
download | cgit-896cd69dde04832f6b551f681b92bd4557092427.tar.gz cgit-896cd69dde04832f6b551f681b92bd4557092427.tar.bz2 cgit-896cd69dde04832f6b551f681b92bd4557092427.zip |
ui-tree: fix resource leak: free before return
Coverity-id: 13938
Signed-off-by: Christian Hesse <mail@eworm.de>
-rw-r--r-- | ui-tree.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -143,6 +143,7 @@ static int ls_item(const unsigned char *sha1, struct strbuf *base, | |||
143 | htmlf("<tr><td colspan='3'>Bad object: %s %s</td></tr>", | 143 | htmlf("<tr><td colspan='3'>Bad object: %s %s</td></tr>", |
144 | name, | 144 | name, |
145 | sha1_to_hex(sha1)); | 145 | sha1_to_hex(sha1)); |
146 | free(name); | ||
146 | return 0; | 147 | return 0; |
147 | } | 148 | } |
148 | } | 149 | } |