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/commit.c | |
parent | 56ffdfc61e37b9e7634c7c73b05d84355bea61cd (diff) | |
download | libgit2-ecf4f33a4e327a91496f72816f9f02d923e5af05.tar.gz |
Convert usage of `git_buf_free` to new `git_buf_dispose`
Diffstat (limited to 'src/commit.c')
-rw-r--r-- | src/commit.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/commit.c b/src/commit.c index 838688bb8..e0c090aa8 100644 --- a/src/commit.c +++ b/src/commit.c @@ -74,7 +74,7 @@ static int git_commit__create_buffer_internal( return 0; on_error: - git_buf_free(out); + git_buf_dispose(out); return -1; } @@ -176,7 +176,7 @@ static int git_commit__create_internal( cleanup: git_array_clear(parents); git_reference_free(ref); - git_buf_free(&buf); + git_buf_dispose(&buf); return error; } @@ -886,6 +886,6 @@ int git_commit_create_with_signature( goto cleanup; cleanup: - git_buf_free(&commit); + git_buf_dispose(&commit); return error; } |