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

Function ref_iterator_free

refs/iterator.c:24–32  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

22}
23
24void ref_iterator_free(struct ref_iterator *ref_iterator)
25{
26 if (ref_iterator) {
27 ref_iterator->vtable->release(ref_iterator);
28 /* Help make use-after-free bugs fail quickly: */
29 ref_iterator->vtable = NULL;
30 free(ref_iterator);
31 }
32}
33
34void base_ref_iterator_init(struct ref_iterator *iter,
35 struct ref_iterator_vtable *vtable)

Callers 12

cache_ref_iterator_beginFunction · 0.85
write_with_updatesFunction · 0.85
do_for_each_ref_iteratorFunction · 0.85
reftable_be_fsckFunction · 0.85
should_pack_refsFunction · 0.85
files_optimizeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected