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

Function reftable_obj_record_release

reftable/record.c:481–487  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

479}
480
481static void reftable_obj_record_release(void *rec)
482{
483 struct reftable_obj_record *obj = rec;
484 REFTABLE_FREE_AND_NULL(obj->hash_prefix);
485 REFTABLE_FREE_AND_NULL(obj->offsets);
486 memset(obj, 0, sizeof(struct reftable_obj_record));
487}
488
489static int reftable_obj_record_copy_from(void *rec, const void *src_rec,
490 uint32_t hash_size REFTABLE_UNUSED)

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected