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/pack-objects.c | |
parent | 56ffdfc61e37b9e7634c7c73b05d84355bea61cd (diff) | |
download | libgit2-ecf4f33a4e327a91496f72816f9f02d923e5af05.tar.gz |
Convert usage of `git_buf_free` to new `git_buf_dispose`
Diffstat (limited to 'src/pack-objects.c')
-rw-r--r-- | src/pack-objects.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pack-objects.c b/src/pack-objects.c index e9245143c..bc5fb2e1f 100644 --- a/src/pack-objects.c +++ b/src/pack-objects.c @@ -1095,7 +1095,7 @@ on_error: git__free(array[i].data); } git__free(array); - git_buf_free(&zbuf); + git_buf_dispose(&zbuf); return error; } @@ -1463,7 +1463,7 @@ int git_packbuilder_insert_tree(git_packbuilder *pb, const git_oid *oid) error = git_tree_walk(tree, GIT_TREEWALK_PRE, cb_tree_walk, &context); git_tree_free(tree); - git_buf_free(&context.buf); + git_buf_dispose(&context.buf); return error; } |