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/fetchhead.c | |
| parent | 56ffdfc61e37b9e7634c7c73b05d84355bea61cd (diff) | |
| download | libgit2-ecf4f33a4e327a91496f72816f9f02d923e5af05.tar.gz | |
Convert usage of `git_buf_free` to new `git_buf_dispose`
Diffstat (limited to 'src/fetchhead.c')
| -rw-r--r-- | src/fetchhead.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/fetchhead.c b/src/fetchhead.c index e55e7c85b..e71021624 100644 --- a/src/fetchhead.c +++ b/src/fetchhead.c @@ -119,11 +119,11 @@ int git_fetchhead_write(git_repository *repo, git_vector *fetchhead_refs) return -1; if (git_filebuf_open(&file, path.ptr, GIT_FILEBUF_APPEND, GIT_REFS_FILE_MODE) < 0) { - git_buf_free(&path); + git_buf_dispose(&path); return -1; } - git_buf_free(&path); + git_buf_dispose(&path); git_vector_sort(fetchhead_refs); @@ -283,9 +283,9 @@ int git_repository_fetchhead_foreach(git_repository *repo, } done: - git_buf_free(&file); - git_buf_free(&path); - git_buf_free(&name); + git_buf_dispose(&file); + git_buf_dispose(&path); + git_buf_dispose(&name); return error; } |
