| 575 | } |
| 576 | |
| 577 | static 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 | |
| 605 | struct walker *get_http_walker(const char *url) |
| 606 | { |
nothing calls this directly
no test coverage detected