summaryrefslogtreecommitdiff
path: root/tests/path
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/path
parent56ffdfc61e37b9e7634c7c73b05d84355bea61cd (diff)
downloadlibgit2-ecf4f33a4e327a91496f72816f9f02d923e5af05.tar.gz
Convert usage of `git_buf_free` to new `git_buf_dispose`
Diffstat (limited to 'tests/path')
-rw-r--r--tests/path/core.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/path/core.c b/tests/path/core.c
index 0ab41ea50..bbcded083 100644
--- a/tests/path/core.c
+++ b/tests/path/core.c
@@ -11,7 +11,7 @@ static void test_make_relative(
git_buf_puts(&buf, path);
cl_assert_equal_i(expected_status, git_path_make_relative(&buf, parent));
cl_assert_equal_s(expected_path, buf.ptr);
- git_buf_free(&buf);
+ git_buf_dispose(&buf);
}
void test_path_core__make_relative(void)
@@ -319,7 +319,7 @@ static void test_join_unrooted(
cl_assert_equal_s(expected_result, result.ptr);
cl_assert_equal_i(expected_rootlen, root_at);
- git_buf_free(&result);
+ git_buf_dispose(&result);
}
void test_path_core__join_unrooted(void)
@@ -350,5 +350,5 @@ void test_path_core__join_unrooted(void)
/* Trailing slash in the base is ignored */
test_join_unrooted("c:/foo/bar/foobar", 6, "c:/foo/bar/foobar", "c:/foo/");
- git_buf_free(&out);
+ git_buf_dispose(&out);
}