summaryrefslogtreecommitdiff
path: root/tests/stash
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/stash
parent56ffdfc61e37b9e7634c7c73b05d84355bea61cd (diff)
downloadlibgit2-ecf4f33a4e327a91496f72816f9f02d923e5af05.tar.gz
Convert usage of `git_buf_free` to new `git_buf_dispose`
Diffstat (limited to 'tests/stash')
-rw-r--r--tests/stash/apply.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/stash/apply.c b/tests/stash/apply.c
index f26b73b19..986eba0f3 100644
--- a/tests/stash/apply.c
+++ b/tests/stash/apply.c
@@ -85,7 +85,7 @@ void test_stash_apply__with_default(void)
cl_git_pass(git_futils_readbuffer(&where, "stash/where"));
cl_assert_equal_s("....\n", where.ptr);
- git_buf_free(&where);
+ git_buf_dispose(&where);
}
void test_stash_apply__with_existing_file(void)
@@ -132,7 +132,7 @@ void test_stash_apply__with_reinstate_index(void)
cl_git_pass(git_futils_readbuffer(&where, "stash/where"));
cl_assert_equal_s("....\n", where.ptr);
- git_buf_free(&where);
+ git_buf_dispose(&where);
}
void test_stash_apply__conflict_index_with_default(void)