File tree Expand file tree Collapse file tree 4 files changed +6
-6
lines changed
Expand file tree Collapse file tree 4 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -101,7 +101,7 @@ void git_cache_clear(git_cache *cache)
101101 git_rwlock_wrunlock (& cache -> lock );
102102}
103103
104- void git_cache_free (git_cache * cache )
104+ void git_cache_dispose (git_cache * cache )
105105{
106106 git_cache_clear (cache );
107107 git_oidmap_free (cache -> map );
Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ extern git_atomic_ssize git_cache__current_storage;
4343int git_cache_set_max_object_size (git_object_t type , size_t size );
4444
4545int git_cache_init (git_cache * cache );
46- void git_cache_free (git_cache * cache );
46+ void git_cache_dispose (git_cache * cache );
4747void git_cache_clear (git_cache * cache );
4848
4949void * git_cache_store_raw (git_cache * cache , git_odb_object * entry );
Original file line number Diff line number Diff line change @@ -448,7 +448,7 @@ int git_odb_new(git_odb **out)
448448 return -1 ;
449449 }
450450 if (git_vector_init (& db -> backends , 4 , backend_sort_cmp ) < 0 ) {
451- git_cache_free (& db -> own_cache );
451+ git_cache_dispose (& db -> own_cache );
452452 git__free (db );
453453 return -1 ;
454454 }
@@ -686,7 +686,7 @@ static void odb_free(git_odb *db)
686686 }
687687
688688 git_vector_free (& db -> backends );
689- git_cache_free (& db -> own_cache );
689+ git_cache_dispose (& db -> own_cache );
690690
691691 git__memzero (db , sizeof (* db ));
692692 git__free (db );
Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ void git_repository_free(git_repository *repo)
160160
161161 git_repository__cleanup (repo );
162162
163- git_cache_free (& repo -> objects );
163+ git_cache_dispose (& repo -> objects );
164164
165165 git_diff_driver_registry_free (repo -> diff_drivers );
166166 repo -> diff_drivers = NULL ;
@@ -245,7 +245,7 @@ static git_repository *repository_alloc(void)
245245
246246on_error :
247247 if (repo )
248- git_cache_free (& repo -> objects );
248+ git_cache_dispose (& repo -> objects );
249249
250250 git__free (repo );
251251 return NULL ;
You can’t perform that action at this time.
0 commit comments