summaryrefslogtreecommitdiff
path: root/src/apply.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 /src/apply.c
parent56ffdfc61e37b9e7634c7c73b05d84355bea61cd (diff)
downloadlibgit2-ecf4f33a4e327a91496f72816f9f02d923e5af05.tar.gz
Convert usage of `git_buf_free` to new `git_buf_dispose`
Diffstat (limited to 'src/apply.c')
-rw-r--r--src/apply.c8
1 files changed, 4 insertions, 4 deletions
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;
}