mirror of
https://git.zx2c4.com/cgit
synced 2025-07-28 06:34:37 +02:00
ui-tree: free read_sha1_file() buffer after use
Free up the buffer allocated in read_sha1_file() Signed-off-by: Andy Green <andy@warmcat.com> Signed-off-by: John Keeping <john@keeping.me.uk>
This commit is contained in:
parent
48f175083a
commit
7708859c4d
1 changed files with 2 additions and 0 deletions
|
@ -127,6 +127,8 @@ static void print_object(const unsigned char *sha1, char *path, const char *base
|
|||
print_binary_buffer(buf, size);
|
||||
else
|
||||
print_text_buffer(basename, buf, size);
|
||||
|
||||
free(buf);
|
||||
}
|
||||
|
||||
struct single_tree_ctx {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue