Skip to content

Commit cfd6e01

Browse files
committed
tests: use git__ allocator functions consistently
1 parent aaed67f commit cfd6e01

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

tests/libgit2/checkout/conflict.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1095,7 +1095,7 @@ static void collect_progress(
10951095
if (path == NULL)
10961096
return;
10971097

1098-
git_vector_insert(paths, strdup(path));
1098+
git_vector_insert(paths, git__strdup(path));
10991099
}
11001100

11011101
void test_checkout_conflict__report_progress(void)

tests/libgit2/checkout/icase.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ static void assert_name_is(const char *expected)
8989
if (start)
9090
cl_assert_equal_strn("/", actual + (start - 1), 1);
9191

92-
free(actual);
92+
git__free(actual);
9393
}
9494

9595
static int symlink_or_fake(git_repository *repo, const char *a, const char *b)

tests/libgit2/remote/fetch.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@ void test_remote_fetch__cleanup(void) {
4040
git_repository_free(repo2);
4141

4242
cl_git_pass(git_futils_rmdir_r(repo1_path, NULL, GIT_RMDIR_REMOVE_FILES));
43-
free(repo1_path);
43+
git__free(repo1_path);
4444

4545
cl_git_pass(git_futils_rmdir_r(repo2_path, NULL, GIT_RMDIR_REMOVE_FILES));
46-
free(repo2_path);
46+
git__free(repo2_path);
4747
}
4848

4949

0 commit comments

Comments
 (0)