add hierarchy unit-test

This commit is contained in:
liuwentan
2023-04-04 21:23:03 +08:00
parent 9234ebb9e1
commit 5d545d6dbf
2 changed files with 268 additions and 7 deletions

View File

@@ -173,7 +173,11 @@ void fqdn_rule_free(struct FQDN_rule *fqdn_rule)
void fqdn_ex_container_free(void *schema, void *data)
{
struct ex_container_schema *container_schema = (struct ex_container_schema *)schema;
container_schema->user_data_free = (void (*)(void *))fqdn_rule_free;
if (container_schema != NULL) {
container_schema->user_data_free = (void (*)(void *))fqdn_rule_free;
}
ex_container_free(container_schema, data);
}