void htrace_conf_free(struct htrace_conf *cnf) { if (!cnf) { return; } if (cnf->values) { htable_visit(cnf->values, htrace_tuple_free, NULL); htable_free(cnf->values); } if (cnf->defaults) { htable_visit(cnf->defaults, htrace_tuple_free, NULL); htable_free(cnf->defaults); } free(cnf); }
void span_table_free(struct span_table *st) { struct htable *ht = (struct htable *)st; // Free all entries htable_visit(ht, span_table_free_entry, NULL); // Free the table itself htable_free(ht); }