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

Function cleanup

http-walker.c:577–603  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

575}
576
577static void cleanup(struct walker *walker)
578{
579 struct walker_data *data = walker->data;
580 struct alt_base *alt, *alt_next;
581
582 if (data) {
583 alt = data->alt;
584 while (alt) {
585 struct packfile_list_entry *e;
586
587 alt_next = alt->next;
588
589 for (e = alt->packs.head; e; e = e->next) {
590 close_pack(e->pack);
591 free(e->pack);
592 }
593 packfile_list_clear(&alt->packs);
594
595 free(alt->base);
596 free(alt);
597
598 alt = alt_next;
599 }
600 free(data);
601 walker->data = NULL;
602 }
603}
604
605struct walker *get_http_walker(const char *url)
606{

Callers

nothing calls this directly

Calls 2

close_packFunction · 0.85
packfile_list_clearFunction · 0.85

Tested by

no test coverage detected