summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Matthieu Moy <Matthieu.Moy@imag.fr>2014-08-07 19:13:37 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2014-08-07 12:29:09 -0700
commit94204bf505c290ffbe86e55f8aaee23be66164e0 (patch)
tree90ba6e7c128b6aa2bbd6f8bab87eeaf892e0eaf7
parentMerge branch 'maint-1.8.5' into maint-1.9 (diff)
downloadtgif-94204bf505c290ffbe86e55f8aaee23be66164e0.tar.xz
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>
-rw-r--r--builtin/log.c1
1 files changed, 1 insertions, 0 deletions
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)