tests: use git__ allocator functions consistently

This commit is contained in:
Edward Thomson
2024-04-18 20:49:57 +01:00
parent aaed67f786
commit cfd6e0148b
3 changed files with 4 additions and 4 deletions

View File

@@ -1095,7 +1095,7 @@ static void collect_progress(
if (path == NULL)
return;
git_vector_insert(paths, strdup(path));
git_vector_insert(paths, git__strdup(path));
}
void test_checkout_conflict__report_progress(void)

View File

@@ -89,7 +89,7 @@ static void assert_name_is(const char *expected)
if (start)
cl_assert_equal_strn("/", actual + (start - 1), 1);
free(actual);
git__free(actual);
}
static int symlink_or_fake(git_repository *repo, const char *a, const char *b)

View File

@@ -40,10 +40,10 @@ void test_remote_fetch__cleanup(void) {
git_repository_free(repo2);
cl_git_pass(git_futils_rmdir_r(repo1_path, NULL, GIT_RMDIR_REMOVE_FILES));
free(repo1_path);
git__free(repo1_path);
cl_git_pass(git_futils_rmdir_r(repo2_path, NULL, GIT_RMDIR_REMOVE_FILES));
free(repo2_path);
git__free(repo2_path);
}