summaryrefslogtreecommitdiff
path: root/builtin/log.c
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2014-09-09 19:53:59 (GMT)
committerJunio C Hamano <gitster@pobox.com>2014-09-09 19:53:59 (GMT)
commit1bada2b0ccd19ca40c18f01cb4d66675d32d385c (patch)
tree27a31d3c616dd647e350ad64cb4c3d256ff5c639 /builtin/log.c
parent7b4164063e9d2a36058052ae250d4c52a0335bd1 (diff)
parent94204bf505c290ffbe86e55f8aaee23be66164e0 (diff)
downloadgit-1bada2b0ccd19ca40c18f01cb4d66675d32d385c.zip
git-1bada2b0ccd19ca40c18f01cb4d66675d32d385c.tar.gz
git-1bada2b0ccd19ca40c18f01cb4d66675d32d385c.tar.bz2
Merge branch 'mm/log-branch-desc-plug-leak'
* mm/log-branch-desc-plug-leak: builtin/log.c: fix minor memory leak
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 4389722..e4d8122 100644
--- a/builtin/log.c
+++ b/builtin/log.c
@@ -864,6 +864,7 @@ static void add_branch_description(struct strbuf *buf, const char *branch_name)
strbuf_addbuf(buf, &desc);
strbuf_addch(buf, '\n');
}
+ strbuf_release(&desc);
}
static char *find_branch_name(struct rev_info *rev)