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/ignore.c | |
parent | 56ffdfc61e37b9e7634c7c73b05d84355bea61cd (diff) | |
download | libgit2-ecf4f33a4e327a91496f72816f9f02d923e5af05.tar.gz |
Convert usage of `git_buf_free` to new `git_buf_dispose`
Diffstat (limited to 'src/ignore.c')
-rw-r--r-- | src/ignore.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ignore.c b/src/ignore.c index 76b997245..a9c923ab4 100644 --- a/src/ignore.c +++ b/src/ignore.c @@ -169,7 +169,7 @@ static int does_negate_rule(int *out, git_vector *rules, git_attr_fnmatch *match out: git__free(path); - git_buf_free(&buf); + git_buf_dispose(&buf); return error; } @@ -323,7 +323,7 @@ int git_ignore__for_path( (error = git_path_to_dir(&local)) < 0 || (error = git_buf_joinpath(&ignores->dir, workdir, local.ptr)) < 0) {;} /* Nothing, we just want to stop on the first error */ - git_buf_free(&local); + git_buf_dispose(&local); } else { error = git_buf_joinpath(&ignores->dir, path, ""); } @@ -363,7 +363,7 @@ int git_ignore__for_path( git_repository_attr_cache(repo)->cfg_excl_file); cleanup: - git_buf_free(&infopath); + git_buf_dispose(&infopath); if (error < 0) git_ignore__free(ignores); @@ -435,7 +435,7 @@ void git_ignore__free(git_ignores *ignores) } git_vector_free(&ignores->ign_global); - git_buf_free(&ignores->dir); + git_buf_dispose(&ignores->dir); } static bool ignore_lookup_in_rules( @@ -637,7 +637,7 @@ int git_ignore__check_pathspec_for_exact_ignores( } git_index_free(idx); - git_buf_free(&path); + git_buf_dispose(&path); return error; } |