diff options
| author | Patrick Steinhardt <ps@pks.im> | 2018-02-08 11:14:48 +0000 |
|---|---|---|
| committer | Patrick Steinhardt <ps@pks.im> | 2018-06-10 19:34:37 +0200 |
| commit | ecf4f33a4e327a91496f72816f9f02d923e5af05 (patch) | |
| tree | bb8eccc9ab0dc8f36a702c8a15ad5ae92429ee07 /tests/iterator | |
| parent | 56ffdfc61e37b9e7634c7c73b05d84355bea61cd (diff) | |
| download | libgit2-ecf4f33a4e327a91496f72816f9f02d923e5af05.tar.gz | |
Convert usage of `git_buf_free` to new `git_buf_dispose`
Diffstat (limited to 'tests/iterator')
| -rw-r--r-- | tests/iterator/index.c | 4 | ||||
| -rw-r--r-- | tests/iterator/tree.c | 2 | ||||
| -rw-r--r-- | tests/iterator/workdir.c | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/tests/iterator/index.c b/tests/iterator/index.c index b609d5990..7de0d12c4 100644 --- a/tests/iterator/index.c +++ b/tests/iterator/index.c @@ -284,7 +284,7 @@ void test_iterator_index__case_folding(void) cl_git_pass(git_buf_joinpath(&path, cl_fixture("icase"), ".gitted/CoNfIg")); fs_is_ci = git_path_exists(path.ptr); - git_buf_free(&path); + git_buf_dispose(&path); index_iterator_test( "icase", NULL, NULL, 0, ARRAY_SIZE(expected_index_cs), @@ -1007,7 +1007,7 @@ static void create_paths(git_index *index, const char *root, int depth) } } - git_buf_free(&fullpath); + git_buf_dispose(&fullpath); } void test_iterator_index__pathlist_for_deeply_nested_item(void) diff --git a/tests/iterator/tree.c b/tests/iterator/tree.c index 07da58371..08df909a3 100644 --- a/tests/iterator/tree.c +++ b/tests/iterator/tree.c @@ -653,7 +653,7 @@ static void build_test_tree( cl_git_pass(git_treebuilder_write(out, builder)); git_treebuilder_free(builder); - git_buf_free(&name); + git_buf_dispose(&name); } void test_iterator_tree__case_conflicts_0(void) diff --git a/tests/iterator/workdir.c b/tests/iterator/workdir.c index c38a6152b..a16acd722 100644 --- a/tests/iterator/workdir.c +++ b/tests/iterator/workdir.c @@ -665,7 +665,7 @@ void test_iterator_workdir__filesystem_gunk(void) */ expect_iterator_items(i, 15, NULL, 15, NULL); git_iterator_free(i); - git_buf_free(&parent); + git_buf_dispose(&parent); } void test_iterator_workdir__skips_unreadable_dirs(void) @@ -1041,7 +1041,7 @@ static void create_paths(const char *root, int depth) } } - git_buf_free(&fullpath); + git_buf_dispose(&fullpath); } void test_iterator_workdir__pathlist_for_deeply_nested_item(void) |
