git.99rst.org
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
28ac7aa
)
check-ref-format: release strbuf after use in check_ref_format_branch()
author
Rene Scharfe
<redacted>
Wed, 30 Aug 2017 17:49:35 +0000
(19:49 +0200)
committer
Junio C Hamano
<redacted>
Wed, 6 Sep 2017 23:49:26 +0000
(08:49 +0900)
Signed-off-by: Rene Scharfe <redacted>
Signed-off-by: Junio C Hamano <redacted>
builtin/check-ref-format.c
patch
|
blob
|
history
diff --git
a/builtin/check-ref-format.c
b/builtin/check-ref-format.c
index eac499450f63554387fb8b32ef5780c32ded4a21..6c40ff110bee7387d4eb4e9c7c04a21e8b12ca44 100644
(file)
--- 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;
}
git clone https://git.99rst.org/PROJECT