summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLibravatar Rene Scharfe <l.s.r@web.de>2017-08-30 19:49:35 +0200
committerLibravatar Junio C Hamano <gitster@pobox.com>2017-09-07 08:49:26 +0900
commit861e65557f14a0d93af780c71d82f194404dd563 (patch)
tree58556f646da2504cb35dba8deacd8118bd6d3b3d
parentam: release strbuf after use in safe_to_abort() (diff)
downloadtgif-861e65557f14a0d93af780c71d82f194404dd563.tar.xz
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>
-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 eac499450f..6c40ff110b 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;
}