diff options
author | Matthieu Moy <Matthieu.Moy@imag.fr> | 2014-08-07 19:13:37 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2014-08-07 12:29:09 -0700 |
commit | 94204bf505c290ffbe86e55f8aaee23be66164e0 (patch) | |
tree | 90ba6e7c128b6aa2bbd6f8bab87eeaf892e0eaf7 /builtin/log.c | |
parent | d31f3ad23dd1aee3c3e1015a43b02b995c01a9a1 (diff) | |
download | git-94204bf505c290ffbe86e55f8aaee23be66164e0.tar.gz git-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>
Diffstat (limited to 'builtin/log.c')
-rw-r--r-- | builtin/log.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin/log.c b/builtin/log.c index 39e883635..308761693 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) |