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/apply.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/apply.c') diff --git a/src/apply.c b/src/apply.c index 7801a0a54..8c7bb6bf3 100644 --- a/src/apply.c +++ b/src/apply.c @@ -255,7 +255,7 @@ static int apply_binary_delta( if (!error && inflated.size != binary_file->inflatedlen) { error = apply_err("inflated delta does not match expected length"); - git_buf_free(out); + git_buf_dispose(out); } if (error < 0) @@ -281,7 +281,7 @@ static int apply_binary_delta( } done: - git_buf_free(&inflated); + git_buf_dispose(&inflated); return error; } @@ -320,9 +320,9 @@ static int apply_binary( done: if (error < 0) - git_buf_free(out); + git_buf_dispose(out); - git_buf_free(&reverse); + git_buf_dispose(&reverse); return error; } -- cgit v1.2.1