mirror of
https://github.com/git/git
synced 2024-10-03 23:29:36 +00:00
builtin/log.c: fix minor memory leak
Signed-off-by: Matthieu Moy <Matthieu.Moy@imag.fr> Reviewed-by: Jonathan Nieder <jrnieder@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
d31f3ad23d
commit
94204bf505
|
@ -859,6 +859,7 @@ static void add_branch_description(struct strbuf *buf, const char *branch_name)
|
|||
strbuf_add(buf, desc.buf, desc.len);
|
||||
strbuf_addch(buf, '\n');
|
||||
}
|
||||
strbuf_release(&desc);
|
||||
}
|
||||
|
||||
static char *find_branch_name(struct rev_info *rev)
|
||||
|
|
Loading…
Reference in a new issue