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>

Rene Scharfe committed Aug 30, 2017 at 19:49 UTC 861e65557f14a0d93af780c71d82f194404dd563
1 file changed +1
builtin/check-ref-format.c
+1
@@ -45,6 +45,7 @@ static int check_ref_format_branch(const char *arg)
45 if (strbuf_check_branch_ref(&sb, arg))
46 die("'%s' is not a valid branch name", arg);
47 printf("%s\n", sb.buf + 11);
48 + strbuf_release(&sb);
49 return 0;
50 }
51