the repository which powers this website
ui-tree: free read_sha1_file() buffer after use
Free up the buffer allocated in read_sha1_file()
Signed-off-by: Andy Green <[email protected]>
Signed-off-by: John Keeping <[email protected]>
| -rw-r--r-- | ui-tree.c | 2 |
1 files changed, 2 insertions, 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 { |