Merge branch 'ao/diff-populate-filespec-lstat-errorpath-fix'
[gitweb.git] / builtin / check-ref-format.c
index 737e5ecba3158cc133dacf0dc90409070aa955fa..bc67d3f0a83d35b2fc6d81f28c6908075564644a 100644 (file)
@@ -47,6 +47,7 @@ static int check_ref_format_branch(const char *arg)
            !skip_prefix(sb.buf, "refs/heads/", &name))
                die("'%s' is not a valid branch name", arg);
        printf("%s\n", name);
+       strbuf_release(&sb);
        return 0;
 }