diff options
| author | Patrick Steinhardt <ps@pks.im> | 2019-02-20 10:40:06 +0100 |
|---|---|---|
| committer | Patrick Steinhardt <ps@pks.im> | 2019-02-21 13:35:56 +0100 |
| commit | bbdcd45055ca702eb5083ebf0c70f04c15642f78 (patch) | |
| tree | 98a4fe91213837ebf834d02772fe588612f9e84a /src/repository.c | |
| parent | 9eb098d8614bdd0365140f6614441465123ce903 (diff) | |
| download | libgit2-bbdcd45055ca702eb5083ebf0c70f04c15642f78.tar.gz | |
cache: fix misnaming of `git_cache_free`
Functions that free a structure's contents but not the structure
itself shall be named `dispose` in the libgit2 project, but the
function `git_cache_free` does not follow this naming pattern.
Fix this by renaming it to `git_cache_dispose` and adjusting all
callers to make use of the new name.
Diffstat (limited to 'src/repository.c')
| -rw-r--r-- | src/repository.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/repository.c b/src/repository.c index 2bfa57736..203a6e864 100644 --- a/src/repository.c +++ b/src/repository.c @@ -160,7 +160,7 @@ void git_repository_free(git_repository *repo) git_repository__cleanup(repo); - git_cache_free(&repo->objects); + git_cache_dispose(&repo->objects); git_diff_driver_registry_free(repo->diff_drivers); repo->diff_drivers = NULL; @@ -245,7 +245,7 @@ static git_repository *repository_alloc(void) on_error: if (repo) - git_cache_free(&repo->objects); + git_cache_dispose(&repo->objects); git__free(repo); return NULL; |
