summaryrefslogtreecommitdiff
path: root/tests/diff/drivers.c
diff options
context:
space:
mode:
authorPatrick Steinhardt <ps@pks.im>2018-02-08 11:14:48 +0000
committerPatrick Steinhardt <ps@pks.im>2018-06-10 19:34:37 +0200
commitecf4f33a4e327a91496f72816f9f02d923e5af05 (patch)
treebb8eccc9ab0dc8f36a702c8a15ad5ae92429ee07 /tests/diff/drivers.c
parent56ffdfc61e37b9e7634c7c73b05d84355bea61cd (diff)
downloadlibgit2-ecf4f33a4e327a91496f72816f9f02d923e5af05.tar.gz
Convert usage of `git_buf_free` to new `git_buf_dispose`
Diffstat (limited to 'tests/diff/drivers.c')
-rw-r--r--tests/diff/drivers.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/diff/drivers.c b/tests/diff/drivers.c
index 42af38a9a..cace40967 100644
--- a/tests/diff/drivers.c
+++ b/tests/diff/drivers.c
@@ -65,7 +65,7 @@ void test_diff_drivers__patterns(void)
cl_git_pass(git_patch_to_buf(&actual, patch));
cl_assert_equal_s(expected0, actual.ptr);
- git_buf_free(&actual);
+ git_buf_dispose(&actual);
git_patch_free(patch);
git_diff_free(diff);
@@ -80,7 +80,7 @@ void test_diff_drivers__patterns(void)
cl_git_pass(git_patch_to_buf(&actual, patch));
cl_assert_equal_s(expected1, actual.ptr);
- git_buf_free(&actual);
+ git_buf_dispose(&actual);
git_patch_free(patch);
git_diff_free(diff);
@@ -95,7 +95,7 @@ void test_diff_drivers__patterns(void)
cl_git_pass(git_patch_to_buf(&actual, patch));
cl_assert_equal_s(expected0, actual.ptr);
- git_buf_free(&actual);
+ git_buf_dispose(&actual);
git_patch_free(patch);
git_diff_free(diff);
@@ -112,7 +112,7 @@ void test_diff_drivers__patterns(void)
cl_git_pass(git_patch_to_buf(&actual, patch));
cl_assert_equal_s(expected1, actual.ptr);
- git_buf_free(&actual);
+ git_buf_dispose(&actual);
git_patch_free(patch);
git_diff_free(diff);
@@ -133,7 +133,7 @@ void test_diff_drivers__patterns(void)
cl_git_pass(git_patch_to_buf(&actual, patch));
cl_assert_equal_s(expected2, actual.ptr);
- git_buf_free(&actual);
+ git_buf_dispose(&actual);
git_patch_free(patch);
git_diff_free(diff);
@@ -169,7 +169,7 @@ void test_diff_drivers__long_lines(void)
cl_assert_equal_s(expected, actual.ptr);
- git_buf_free(&actual);
+ git_buf_dispose(&actual);
git_patch_free(patch);
git_diff_free(diff);
}
@@ -245,9 +245,9 @@ void test_diff_drivers__builtins(void)
git__free(path);
}
- git_buf_free(&file);
- git_buf_free(&actual);
- git_buf_free(&expected);
+ git_buf_dispose(&file);
+ git_buf_dispose(&actual);
+ git_buf_dispose(&expected);
git_vector_free(&files);
}