| 1053 | } |
| 1054 | |
| 1055 | void 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 | |
| 1073 | void odb_reprepare(struct object_database *o) |
| 1074 | { |