diff --git a/ui-tree.c b/ui-tree.c index 1b310d5..d71503d 100644 --- a/ui-tree.c +++ b/ui-tree.c @@ -143,6 +143,7 @@ static int ls_item(const unsigned char *sha1, struct strbuf *base, htmlf("Bad object: %s %s", name, sha1_to_hex(sha1)); + free(name); return 0; } }