ui-tree: fix resource leak: free before return

Coverity-id: 13938
Signed-off-by: Christian Hesse <mail@eworm.de>
This commit is contained in:
Christian Hesse 2015-10-09 13:15:44 +02:00 提交者 Jason A. Donenfeld
父節點 ad006918a5
當前提交 896cd69dde
共有 1 個檔案被更改,包括 1 行新增0 行删除

查看文件

@ -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;
}
}