diff options
| author | Edward Thomson <ethomson@edwardthomson.com> | 2018-06-11 18:26:22 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-06-11 18:26:22 +0100 |
| commit | 3be7301151e44537d2423386dc71f1d3e496c664 (patch) | |
| tree | 655ff1fc09e227c77a1c8853706e5180a78f5a50 /tests/diff/parse.c | |
| parent | e6444dacb88e29e75fee81a87d1876db77d43362 (diff) | |
| parent | ecf4f33a4e327a91496f72816f9f02d923e5af05 (diff) | |
| download | libgit2-3be7301151e44537d2423386dc71f1d3e496c664.tar.gz | |
Merge pull request #4436 from pks-t/pks/packfile-stream-free
pack: rename `git_packfile_stream_free`
Diffstat (limited to 'tests/diff/parse.c')
| -rw-r--r-- | tests/diff/parse.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/tests/diff/parse.c b/tests/diff/parse.c index dc2ceefec..bb18196b0 100644 --- a/tests/diff/parse.c +++ b/tests/diff/parse.c @@ -54,7 +54,7 @@ static void test_parse_invalid_diff(const char *invalid_diff) cl_git_fail_with(GIT_ERROR, git_diff_from_buffer(&diff, buf.ptr, buf.size)); - git_buf_free(&buf); + git_buf_dispose(&buf); } void test_diff_parse__exact_rename(void) @@ -125,7 +125,7 @@ static void test_tree_to_tree_computed_to_parsed( git_diff_free(computed); git_diff_free(parsed); - git_buf_free(&computed_buf); + git_buf_dispose(&computed_buf); cl_git_sandbox_cleanup(); } @@ -213,7 +213,7 @@ void test_diff_parse__get_patch_from_diff(void) git_diff_free(computed); git_diff_free(parsed); - git_buf_free(&computed_buf); + git_buf_dispose(&computed_buf); cl_git_sandbox_cleanup(); } @@ -265,7 +265,7 @@ void test_diff_parse__parsing_minimal_patch_succeeds(void) cl_assert_equal_s(patch, buf.ptr); git_diff_free(diff); - git_buf_free(&buf); + git_buf_dispose(&buf); } void test_diff_parse__patch_roundtrip_succeeds(void) @@ -285,6 +285,6 @@ void test_diff_parse__patch_roundtrip_succeeds(void) git_patch_free(patch); git_diff_free(diff); - git_buf_free(&patchbuf); - git_buf_free(&diffbuf); + git_buf_dispose(&patchbuf); + git_buf_dispose(&diffbuf); } |
