X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=attr.c;h=55bdb7cdebea7f7ea551231fe7801f272d128d69;hb=bb99190e27c455867bb364059f9a44c0571fc914;hp=98eb636f13d314c20e18e646c074e2511b3c891c;hpb=3ba4f3a9fc68ba4c5a0064107e8993c5fc5b684f;p=git.git diff --git a/attr.c b/attr.c index 98eb636f1..55bdb7cde 100644 --- a/attr.c +++ b/attr.c @@ -35,8 +35,7 @@ static struct git_attr *(git_attr_hash[HASHSIZE]); static unsigned hash_name(const char *name, int namelen) { - unsigned val = 0; - unsigned char c; + unsigned val = 0, c; while (namelen--) { c = *name++; @@ -556,6 +555,8 @@ static void prepare_attr_stack(const char *path, int dirlen) } } + strbuf_release(&pathbuf); + /* * Finally push the "info" one at the top of the stack. */