summaryrefslogtreecommitdiff
path: root/tests/worktree/submodule.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/worktree/submodule.c
parent56ffdfc61e37b9e7634c7c73b05d84355bea61cd (diff)
downloadlibgit2-ecf4f33a4e327a91496f72816f9f02d923e5af05.tar.gz
Convert usage of `git_buf_free` to new `git_buf_dispose`
Diffstat (limited to 'tests/worktree/submodule.c')
-rw-r--r--tests/worktree/submodule.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/tests/worktree/submodule.c b/tests/worktree/submodule.c
index 294385226..2e62c039c 100644
--- a/tests/worktree/submodule.c
+++ b/tests/worktree/submodule.c
@@ -55,7 +55,7 @@ void test_worktree_submodule__open_discovered_submodule_worktree(void)
cl_assert_equal_s(git_repository_workdir(child.worktree),
git_repository_workdir(repo));
- git_buf_free(&path);
+ git_buf_dispose(&path);
git_repository_free(repo);
}
@@ -86,7 +86,7 @@ void test_worktree_submodule__resolve_relative_url(void)
git_worktree_free(wt);
git_repository_free(repo);
- git_buf_free(&wt_path);
- git_buf_free(&sm_relative_path);
- git_buf_free(&wt_relative_path);
+ git_buf_dispose(&wt_path);
+ git_buf_dispose(&sm_relative_path);
+ git_buf_dispose(&wt_relative_path);
}