From 94204bf505c290ffbe86e55f8aaee23be66164e0 Mon Sep 17 00:00:00 2001 From: Matthieu Moy Date: Thu, 7 Aug 2014 19:13:37 +0200 Subject: builtin/log.c: fix minor memory leak Signed-off-by: Matthieu Moy Reviewed-by: Jonathan Nieder Signed-off-by: Junio C Hamano --- builtin/log.c | 1 + 1 file changed, 1 insertion(+) diff --git a/builtin/log.c b/builtin/log.c index 39e8836352..308761693e 100644 --- a/builtin/log.c +++ b/builtin/log.c @@ -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) -- cgit v1.2.3