Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
builtin/log.c: fix minor memory leak
author
Matthieu Moy
<Matthieu.Moy@imag.fr>
Thu, 7 Aug 2014 17:13:37 +0000
(19:13 +0200)
committer
Junio C Hamano
<gitster@pobox.com>
Thu, 7 Aug 2014 19:29:09 +0000
(12:29 -0700)
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>
builtin/log.c
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
d31f3ad
)
diff --git
a/builtin/log.c
b/builtin/log.c
index 39e883635279ad21f3ddd7b224f484b9b04700b0..308761693e4b87d0c0c61fc7d94d4148c8555b5e 100644
(file)
--- 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)