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/submodule/open.c | |
| parent | 56ffdfc61e37b9e7634c7c73b05d84355bea61cd (diff) | |
| download | libgit2-ecf4f33a4e327a91496f72816f9f02d923e5af05.tar.gz | |
Convert usage of `git_buf_free` to new `git_buf_dispose`
Diffstat (limited to 'tests/submodule/open.c')
| -rw-r--r-- | tests/submodule/open.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/submodule/open.c b/tests/submodule/open.c index 0ef01ec24..a8a5dccc3 100644 --- a/tests/submodule/open.c +++ b/tests/submodule/open.c @@ -48,8 +48,8 @@ static void assert_sm_valid(git_repository *parent, git_repository *child, const cl_git_pass(git_path_prettify_dir(&actual, actual.ptr, NULL)); cl_assert_equal_s(expected.ptr, actual.ptr); - git_buf_free(&expected); - git_buf_free(&actual); + git_buf_dispose(&expected); + git_buf_dispose(&actual); } void test_submodule_open__opening_via_lookup_succeeds(void) @@ -67,7 +67,7 @@ void test_submodule_open__direct_open_succeeds(void) cl_git_pass(git_repository_open(&g_child, path.ptr)); assert_sm_valid(g_parent, g_child, "sm_unchanged"); - git_buf_free(&path); + git_buf_dispose(&path); } void test_submodule_open__direct_open_succeeds_for_broken_sm_with_gitdir(void) @@ -86,5 +86,5 @@ void test_submodule_open__direct_open_succeeds_for_broken_sm_with_gitdir(void) cl_git_pass(git_repository_open(&g_child, path.ptr)); assert_sm_valid(g_parent, g_child, "sm_unchanged"); - git_buf_free(&path); + git_buf_dispose(&path); } |
