void lisp_reg_site_del(lisp_reg_site_t *rs) { stop_timers_from_obj(rs,ptrs_to_timers_ht,nonces_ht); mapping_del(rs->site_map); free(rs); }
void mcache_entry_del(mcache_entry_t *entry) { locator_t *loct; assert(entry); /* Stop timers associated to the locators */ mapping_foreach_locator(mcache_entry_mapping(entry),loct){ stop_timers_from_obj(loct,ptrs_to_timers_ht, nonces_ht); }mapping_foreach_locator_end;
void map_local_entry_del(map_local_entry_t *mle) { if (mle == NULL){ return; } stop_timers_from_obj(mle,ptrs_to_timers_ht, nonces_ht); mapping_del(mle->mapping); if (mle->fwd_info != NULL){ mle->fwd_inf_del(mle->fwd_info); } free(mle); }