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/fetchhead | |
parent | 56ffdfc61e37b9e7634c7c73b05d84355bea61cd (diff) | |
download | libgit2-ecf4f33a4e327a91496f72816f9f02d923e5af05.tar.gz |
Convert usage of `git_buf_free` to new `git_buf_dispose`
Diffstat (limited to 'tests/fetchhead')
-rw-r--r-- | tests/fetchhead/nonetwork.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/fetchhead/nonetwork.c b/tests/fetchhead/nonetwork.c index a6394600a..6ea48a5f3 100644 --- a/tests/fetchhead/nonetwork.c +++ b/tests/fetchhead/nonetwork.c @@ -94,7 +94,7 @@ void test_fetchhead_nonetwork__write(void) equals = (strcmp(fetchhead_buf.ptr, FETCH_HEAD_WILDCARD_DATA_LOCAL) == 0); - git_buf_free(&fetchhead_buf); + git_buf_dispose(&fetchhead_buf); git_vector_foreach(&fetchhead_vector, i, fetchhead_ref) { git_fetchhead_ref_free(fetchhead_ref); @@ -427,7 +427,7 @@ void test_fetchhead_nonetwork__create_when_refpecs_given(void) cl_assert(found_haacked); git_remote_free(remote); - git_buf_free(&path); + git_buf_dispose(&path); } static bool count_refs_called; @@ -491,5 +491,5 @@ void test_fetchhead_nonetwork__create_with_multiple_refspecs(void) } git_remote_free(remote); - git_buf_free(&path); + git_buf_dispose(&path); } |