Browse Source

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>
maint
Rene Scharfe 7 years ago committed by Junio C Hamano
parent
commit
861e65557f
  1. 1
      builtin/check-ref-format.c

1
builtin/check-ref-format.c

@ -45,6 +45,7 @@ static int check_ref_format_branch(const char *arg) @@ -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;
}


Loading…
Cancel
Save