From ecf4f33a4e327a91496f72816f9f02d923e5af05 Mon Sep 17 00:00:00 2001 From: Patrick Steinhardt Date: Thu, 8 Feb 2018 11:14:48 +0000 Subject: Convert usage of `git_buf_free` to new `git_buf_dispose` --- src/commit.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/commit.c') 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; } -- cgit v1.2.1