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:
Matthieu Moy 2014-08-07 19:13:37 +02:00 committed by Junio C Hamano
parent d31f3ad23d
commit 94204bf505

View file

@ -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)