| 340 | } |
| 341 | |
| 342 | static void odb_source_inmemory_free(struct odb_source *source) |
| 343 | { |
| 344 | struct odb_source_inmemory *inmemory = odb_source_inmemory_downcast(source); |
| 345 | |
| 346 | if (inmemory->objects) { |
| 347 | struct object_id null_oid = { 0 }; |
| 348 | |
| 349 | oidtree_each(inmemory->objects, &null_oid, 0, |
| 350 | inmemory_object_free, NULL); |
| 351 | oidtree_clear(inmemory->objects); |
| 352 | free(inmemory->objects); |
| 353 | } |
| 354 | |
| 355 | free(inmemory->base.path); |
| 356 | free(inmemory); |
| 357 | } |
| 358 | |
| 359 | struct odb_source_inmemory *odb_source_inmemory_new(struct object_database *odb) |
| 360 | { |
nothing calls this directly
no test coverage detected