summaryrefslogtreecommitdiff
path: root/builtin/log.c
diff options
context:
space:
mode:
authorMatthieu Moy <Matthieu.Moy@imag.fr>2014-08-07 19:13:37 +0200
committerJunio C Hamano <gitster@pobox.com>2014-08-07 12:29:09 -0700
commit94204bf505c290ffbe86e55f8aaee23be66164e0 (patch)
tree90ba6e7c128b6aa2bbd6f8bab87eeaf892e0eaf7 /builtin/log.c
parentd31f3ad23dd1aee3c3e1015a43b02b995c01a9a1 (diff)
downloadgit-94204bf505c290ffbe86e55f8aaee23be66164e0.tar.gz
builtin/log.c: fix minor memory leakmm/log-branch-desc-plug-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>
Diffstat (limited to 'builtin/log.c')
-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)