sha1_file: release strbuf on error return in index_path()