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/buf/basic.c | |
| parent | 56ffdfc61e37b9e7634c7c73b05d84355bea61cd (diff) | |
| download | libgit2-ecf4f33a4e327a91496f72816f9f02d923e5af05.tar.gz | |
Convert usage of `git_buf_free` to new `git_buf_dispose`
Diffstat (limited to 'tests/buf/basic.c')
| -rw-r--r-- | tests/buf/basic.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/buf/basic.c b/tests/buf/basic.c index 14ea3e7ce..f90c4c6ed 100644 --- a/tests/buf/basic.c +++ b/tests/buf/basic.c @@ -12,7 +12,7 @@ void test_buf_basic__resize(void) git_buf_puts(&buf1, test_string); cl_assert(strlen(git_buf_cstr(&buf1)) == strlen(test_string) * 2); - git_buf_free(&buf1); + git_buf_dispose(&buf1); } void test_buf_basic__resize_incremental(void) @@ -34,7 +34,7 @@ void test_buf_basic__resize_incremental(void) cl_assert_equal_i(5, buf1.size); cl_assert(buf1.asize > 8); - git_buf_free(&buf1); + git_buf_dispose(&buf1); } void test_buf_basic__printf(void) @@ -47,5 +47,5 @@ void test_buf_basic__printf(void) git_buf_printf(&buf2, "%s %d", "woop", 42); cl_assert(git_buf_oom(&buf2) == 0); cl_assert_equal_s(git_buf_cstr(&buf2), "shoop da 23 woop 42"); - git_buf_free(&buf2); + git_buf_dispose(&buf2); } |
