mirror of
https://git.zx2c4.com/cgit
synced 2025-08-16 07:28:01 +02:00
ui-tree: fix resource leak: free before return
Coverity-id: 13938 Signed-off-by: Christian Hesse <mail@eworm.de>
This commit is contained in:
parent
ad006918a5
commit
896cd69dde
1 changed files with 1 additions and 0 deletions
|
@ -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>",
|
htmlf("<tr><td colspan='3'>Bad object: %s %s</td></tr>",
|
||||||
name,
|
name,
|
||||||
sha1_to_hex(sha1));
|
sha1_to_hex(sha1));
|
||||||
|
free(name);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue