MCPcopy Index your code
hub / github.com/git/git / release_commit_memory

Function release_commit_memory

commit.c:486–494  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

484}
485
486void release_commit_memory(struct parsed_object_pool *pool, struct commit *c)
487{
488 set_commit_tree(c, NULL);
489 free_commit_buffer(pool, c);
490 c->index = 0;
491 commit_list_free(c->parents);
492
493 c->object.parsed = 0;
494}
495
496const void *detach_commit_buffer(struct commit *commit, unsigned long *sizep)
497{

Callers 1

parsed_object_pool_clearFunction · 0.85

Calls 3

free_commit_bufferFunction · 0.85
commit_list_freeFunction · 0.85
set_commit_treeFunction · 0.70

Tested by

no test coverage detected