mirror of
https://git.zx2c4.com/cgit
synced 2024-11-22 08:28:42 +00: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
@ -127,6 +127,8 @@ static void print_object(const unsigned char *sha1, char *path, const char *base
|
|||||||
print_binary_buffer(buf, size);
|
print_binary_buffer(buf, size);
|
||||||
else
|
else
|
||||||
print_text_buffer(basename, buf, size);
|
print_text_buffer(basename, buf, size);
|
||||||
|
|
||||||
|
free(buf);
|
||||||
}
|
}
|
||||||
|
|
||||||
struct single_tree_ctx {
|
struct single_tree_ctx {
|
||||||
|
Loading…
Reference in New Issue
Block a user