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)
101
101
git_rwlock_wrunlock (& cache -> lock );
102
102
}
103
103
104
- void git_cache_free (git_cache * cache )
104
+ void git_cache_dispose (git_cache * cache )
105
105
{
106
106
git_cache_clear (cache );
107
107
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;
43
43
int git_cache_set_max_object_size (git_object_t type , size_t size );
44
44
45
45
int git_cache_init (git_cache * cache );
46
- void git_cache_free (git_cache * cache );
46
+ void git_cache_dispose (git_cache * cache );
47
47
void git_cache_clear (git_cache * cache );
48
48
49
49
void * 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)
448
448
return -1 ;
449
449
}
450
450
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 );
452
452
git__free (db );
453
453
return -1 ;
454
454
}
@@ -686,7 +686,7 @@ static void odb_free(git_odb *db)
686
686
}
687
687
688
688
git_vector_free (& db -> backends );
689
- git_cache_free (& db -> own_cache );
689
+ git_cache_dispose (& db -> own_cache );
690
690
691
691
git__memzero (db , sizeof (* db ));
692
692
git__free (db );
Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ void git_repository_free(git_repository *repo)
160
160
161
161
git_repository__cleanup (repo );
162
162
163
- git_cache_free (& repo -> objects );
163
+ git_cache_dispose (& repo -> objects );
164
164
165
165
git_diff_driver_registry_free (repo -> diff_drivers );
166
166
repo -> diff_drivers = NULL ;
@@ -245,7 +245,7 @@ static git_repository *repository_alloc(void)
245
245
246
246
on_error :
247
247
if (repo )
248
- git_cache_free (& repo -> objects );
248
+ git_cache_dispose (& repo -> objects );
249
249
250
250
git__free (repo );
251
251
return NULL ;
You can’t perform that action at this time.
0 commit comments