mirror of
https://github.com/libgit2/libgit2.git
synced 2026-06-22 06:26:26 +00:00
tests: use git__ allocator functions consistently
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user