neocgit

a more 'modern' version of cgit
Log | Files | Refs | Submodules | README | LICENSE | git clone https://git.ne02ptzero.me/git/neocgit

commit 7708859c4dcebff1e43516c23a8bf80f88fcea35
parent 48f175083ae9ee03aa5ed7cddfbf74edf6d75774
Author: Andy Green <andy@warmcat.com>
Date:   Wed, 13 Jun 2018 10:02:00 +0800

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>

Diffstat:
Mui-tree.c | 2++
1 file changed, 2 insertions(+), 0 deletions(-)

diff --git a/ui-tree.c b/ui-tree.c @@ -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 {