/* Cleanup the data structures associated with recursive retrieving (the variables above). */ void recursive_cleanup (void) { if (undesirable_urls) { string_set_free (undesirable_urls); undesirable_urls = NULL; } if (dl_file_url_map) { free_keys_and_values (dl_file_url_map); hash_table_destroy (dl_file_url_map); dl_file_url_map = NULL; } if (dl_url_file_map) { free_keys_and_values (dl_url_file_map); hash_table_destroy (dl_url_file_map); dl_url_file_map = NULL; } undesirable_urls = NULL; free_vec (forbidden); forbidden = NULL; slist_free (downloaded_html_files); downloaded_html_files = NULL; FREE_MAYBE (base_dir); FREE_MAYBE (robots_host); first_time = 1; }
/* Cleanup the data structures associated with recursive retrieving (the variables above). */ void convert_cleanup (void) { if (dl_file_url_map) { free_keys_and_values (dl_file_url_map); hash_table_destroy (dl_file_url_map); dl_file_url_map = NULL; } if (dl_url_file_map) { free_keys_and_values (dl_url_file_map); hash_table_destroy (dl_url_file_map); dl_url_file_map = NULL; } if (downloaded_html_set) string_set_free (downloaded_html_set); slist_free (downloaded_html_list); downloaded_html_list = NULL; }