Skip to content

Commit 94204bf

Browse files
moygitster
authored andcommitted
builtin/log.c: fix minor memory leak
Signed-off-by: Matthieu Moy <[email protected]> Reviewed-by: Jonathan Nieder <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent d31f3ad commit 94204bf

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

builtin/log.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -859,6 +859,7 @@ static void add_branch_description(struct strbuf *buf, const char *branch_name)
859859
strbuf_add(buf, desc.buf, desc.len);
860860
strbuf_addch(buf, '\n');
861861
}
862+
strbuf_release(&desc);
862863
}
863864

864865
static char *find_branch_name(struct rev_info *rev)

0 commit comments

Comments
 (0)