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 /src/diff_print.c | |
| parent | 56ffdfc61e37b9e7634c7c73b05d84355bea61cd (diff) | |
| download | libgit2-ecf4f33a4e327a91496f72816f9f02d923e5af05.tar.gz | |
Convert usage of `git_buf_free` to new `git_buf_dispose`
Diffstat (limited to 'src/diff_print.c')
| -rw-r--r-- | src/diff_print.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/diff_print.c b/src/diff_print.c index 5e535482c..090b4e86b 100644 --- a/src/diff_print.c +++ b/src/diff_print.c @@ -373,8 +373,8 @@ int diff_delta_format_similarity_header( error = -1; done: - git_buf_free(&old_path); - git_buf_free(&new_path); + git_buf_dispose(&old_path); + git_buf_dispose(&new_path); return error; } @@ -446,8 +446,8 @@ int git_diff_delta__format_file_header( error = -1; done: - git_buf_free(&old_path); - git_buf_free(&new_path); + git_buf_dispose(&old_path); + git_buf_dispose(&new_path); return error; } @@ -509,8 +509,8 @@ static int diff_print_patch_file_binary_noshow( old_path.ptr, new_path.ptr); done: - git_buf_free(&old_path); - git_buf_free(&new_path); + git_buf_dispose(&old_path); + git_buf_dispose(&new_path); return error; } @@ -696,7 +696,7 @@ int git_diff_print( giterr_set_after_callback_function(error, "git_diff_print"); } - git_buf_free(&buf); + git_buf_dispose(&buf); return error; } @@ -776,7 +776,7 @@ int git_patch_print( giterr_set_after_callback_function(error, "git_patch_print"); } - git_buf_free(&temp); + git_buf_dispose(&temp); return error; } |
