| 59 | } |
| 60 | |
| 61 | void clear_bundle_list(struct bundle_list *list) |
| 62 | { |
| 63 | if (!list) |
| 64 | return; |
| 65 | |
| 66 | for_all_bundles_in_list(list, clear_remote_bundle_info, NULL); |
| 67 | hashmap_clear_and_free(&list->bundles, struct remote_bundle_info, ent); |
| 68 | free(list->baseURI); |
| 69 | } |
| 70 | |
| 71 | int for_all_bundles_in_list(struct bundle_list *list, |
| 72 | bundle_iterator iter, |