vendor/libgit2/src/odb_pack.c in rugged-0.27.5 vs vendor/libgit2/src/odb_pack.c in rugged-0.27.7

- old
+ new

@@ -208,11 +208,11 @@ cmp_len -= strlen(".idx"); for (i = 0; i < backend->packs.length; ++i) { struct git_pack_file *p = git_vector_get(&backend->packs, i); - if (strncmp(p->pack_name, path_str, cmp_len) == 0) + if (memcmp(p->pack_name, path_str, cmp_len) == 0) return 0; } error = git_mwindow_get_pack(&pack, path->ptr); @@ -344,11 +344,11 @@ git_buf_sets(&path, backend->pack_folder); /* reload all packs */ error = git_path_direach(&path, 0, packfile_load__cb, backend); - git_buf_free(&path); + git_buf_dispose(&path); git_vector_sort(&backend->packs); return error; } @@ -633,9 +633,9 @@ backend = NULL; } *backend_out = (git_odb_backend *)backend; - git_buf_free(&path); + git_buf_dispose(&path); return error; }