X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=attr.c;h=55bdb7cdebea7f7ea551231fe7801f272d128d69;hb=56eb8b43ebdb38683ff5ce395d7b5e080d402b5b;hp=98eb636f13d314c20e18e646c074e2511b3c891c;hpb=b91ffd37d5c18046f7b0bf47e939273bead9e52e;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. */