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/blob.c | |
| parent | 56ffdfc61e37b9e7634c7c73b05d84355bea61cd (diff) | |
| download | libgit2-ecf4f33a4e327a91496f72816f9f02d923e5af05.tar.gz | |
Convert usage of `git_buf_free` to new `git_buf_dispose`
Diffstat (limited to 'src/blob.c')
| -rw-r--r-- | src/blob.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/blob.c b/src/blob.c index 3396fe74f..86ec95c48 100644 --- a/src/blob.c +++ b/src/blob.c @@ -126,7 +126,7 @@ static int write_file_filtered( error = git_odb_write(id, odb, tgt.ptr, tgt.size, GIT_OBJ_BLOB); } - git_buf_free(&tgt); + git_buf_dispose(&tgt); return error; } @@ -238,7 +238,7 @@ int git_blob__create_from_paths( done: git_odb_free(odb); - git_buf_free(&path); + git_buf_dispose(&path); return error; } @@ -257,7 +257,7 @@ int git_blob_create_fromdisk( const char *workdir, *hintpath; if ((error = git_path_prettify(&full_path, path, NULL)) < 0) { - git_buf_free(&full_path); + git_buf_dispose(&full_path); return error; } @@ -270,7 +270,7 @@ int git_blob_create_fromdisk( error = git_blob__create_from_paths( id, NULL, repo, git_buf_cstr(&full_path), hintpath, 0, true); - git_buf_free(&full_path); + git_buf_dispose(&full_path); return error; } @@ -340,7 +340,7 @@ cleanup: if (error < 0) blob_writestream_free((git_writestream *) stream); - git_buf_free(&path); + git_buf_dispose(&path); return error; } |
