void wget_ocsp_db_deinit(wget_ocsp_db_t *ocsp_db) { if (ocsp_db) { wget_thread_mutex_lock(&ocsp_db->mutex); wget_hashmap_free(&ocsp_db->fingerprints); wget_hashmap_free(&ocsp_db->hosts); wget_thread_mutex_unlock(&ocsp_db->mutex); } }
void wget_netrc_db_deinit(wget_netrc_db_t *netrc_db) { if (netrc_db) { wget_hashmap_free(&netrc_db->machines); } }