summaryrefslogtreecommitdiff
path: root/tests/diff/parse.c
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/diff/parse.c
parent56ffdfc61e37b9e7634c7c73b05d84355bea61cd (diff)
downloadlibgit2-ecf4f33a4e327a91496f72816f9f02d923e5af05.tar.gz
Convert usage of `git_buf_free` to new `git_buf_dispose`
Diffstat (limited to 'tests/diff/parse.c')
-rw-r--r--tests/diff/parse.c12
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);
}