summaryrefslogtreecommitdiff
path: root/builtin/check-ref-format.c
diff options
context:
space:
mode:
authorRene Scharfe <l.s.r@web.de>2017-08-30 17:49:35 (GMT)
committerJunio C Hamano <gitster@pobox.com>2017-09-06 23:49:26 (GMT)
commit861e65557f14a0d93af780c71d82f194404dd563 (patch)
tree58556f646da2504cb35dba8deacd8118bd6d3b3d /builtin/check-ref-format.c
parent28ac7aa79b9e7865124aec0eb552a1e3cc9ecdd7 (diff)
downloadgit-861e65557f14a0d93af780c71d82f194404dd563.zip
git-861e65557f14a0d93af780c71d82f194404dd563.tar.gz
git-861e65557f14a0d93af780c71d82f194404dd563.tar.bz2
check-ref-format: release strbuf after use in check_ref_format_branch()
Signed-off-by: Rene Scharfe <l.s.r@web.de> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'builtin/check-ref-format.c')
-rw-r--r--builtin/check-ref-format.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/builtin/check-ref-format.c b/builtin/check-ref-format.c
index eac4994..6c40ff1 100644
--- a/builtin/check-ref-format.c
+++ b/builtin/check-ref-format.c
@@ -45,6 +45,7 @@ static int check_ref_format_branch(const char *arg)
if (strbuf_check_branch_ref(&sb, arg))
die("'%s' is not a valid branch name", arg);
printf("%s\n", sb.buf + 11);
+ strbuf_release(&sb);
return 0;
}