MCPcopy Create free account
hub / github.com/git/git / odb_free

Function odb_free

odb.c:1055–1071  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1053}
1054
1055void odb_free(struct object_database *o)
1056{
1057 if (!o)
1058 return;
1059
1060 free(o->alternate_db);
1061
1062 oidmap_clear(&o->replace_map, 1);
1063 pthread_mutex_destroy(&o->replace_mutex);
1064
1065 odb_close(o);
1066 odb_free_sources(o);
1067
1068 string_list_clear(&o->submodule_source_paths, 0);
1069
1070 free(o);
1071}
1072
1073void odb_reprepare(struct object_database *o)
1074{

Callers 2

repo_clearFunction · 0.85

Calls 4

oidmap_clearFunction · 0.85
odb_closeFunction · 0.85
odb_free_sourcesFunction · 0.85
string_list_clearFunction · 0.85

Tested by 1