diff options
author | Rene Scharfe <l.s.r@web.de> | 2017-08-30 19:49:35 +0200 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2017-09-07 08:49:26 +0900 |
commit | 861e65557f14a0d93af780c71d82f194404dd563 (patch) | |
tree | 58556f646da2504cb35dba8deacd8118bd6d3b3d /builtin | |
parent | am: release strbuf after use in safe_to_abort() (diff) | |
download | tgif-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>
Diffstat (limited to 'builtin')
-rw-r--r-- | builtin/check-ref-format.c | 1 |
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; } |