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 /examples | |
| parent | 56ffdfc61e37b9e7634c7c73b05d84355bea61cd (diff) | |
| download | libgit2-ecf4f33a4e327a91496f72816f9f02d923e5af05.tar.gz | |
Convert usage of `git_buf_free` to new `git_buf_dispose`
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/diff.c | 2 | ||||
| -rw-r--r-- | examples/remote.c | 2 | ||||
| -rw-r--r-- | examples/tag.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/examples/diff.c b/examples/diff.c index 9a4f7a59f..1de0483a3 100644 --- a/examples/diff.c +++ b/examples/diff.c @@ -332,6 +332,6 @@ static void diff_print_stats(git_diff *diff, struct opts *o) fputs(b.ptr, stdout); - git_buf_free(&b); + git_buf_dispose(&b); git_diff_stats_free(stats); } diff --git a/examples/remote.c b/examples/remote.c index e0d5a1406..1cb61ccd8 100644 --- a/examples/remote.c +++ b/examples/remote.c @@ -64,7 +64,7 @@ int main(int argc, char *argv[]) check_lg2(git_repository_open(&repo, buf.ptr), "Could not open repository", NULL); - git_buf_free(&buf); + git_buf_dispose(&buf); switch (opt.cmd) { diff --git a/examples/tag.c b/examples/tag.c index c6a70d90e..29a04c4e2 100644 --- a/examples/tag.c +++ b/examples/tag.c @@ -184,7 +184,7 @@ static void action_delete_tag(tag_state *state) printf("Deleted tag '%s' (was %s)\n", opts->tag_name, abbrev_oid.ptr); - git_buf_free(&abbrev_oid); + git_buf_dispose(&abbrev_oid); git_object_free(obj); } |
