From: Rene Scharfe Date: Wed, 30 Aug 2017 17:49:35 +0000 (+0200) Subject: check-ref-format: release strbuf after use in check_ref_format_branch() X-Git-Tag: v2.15.0-rc0~78^2~30 X-Git-Url: https://git.lorimer.id.au/gitweb.git/diff_plain/861e65557f14a0d93af780c71d82f194404dd563 check-ref-format: release strbuf after use in check_ref_format_branch() Signed-off-by: Rene Scharfe Signed-off-by: Junio C Hamano --- 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; }