and thus we can call dict->proto->free()
* When we have A->B->A, it means that we don't need to track B->A, because we track
* A->B. And if A is freed, then B is freed.
*/
- if (!dict->loading) {
- added = true;
- dict_dependent_add(dict, dependent);
- }
+ added = true;
+ dict_dependent_add(dict, dependent);
/*
* But we only return a pre-existing dict if _this function_ has loaded it.
}
#endif
-#if 0
/*
* If we called init(), then call free()
*/
if (dict->proto && dict->proto->free) {
dict->proto->free();
}
-#endif
if (!fr_cond_assert(!dict->in_protocol_by_name || fr_hash_table_delete(dict->gctx->protocol_by_name, dict))) {
fr_strerror_printf("Failed removing dictionary from protocol hash \"%s\"", dict->root->name);