extensions FEATURE YANG extension plugins support with NACM as proof-of-concept
diff --git a/src/tree_schema_free.c b/src/tree_schema_free.c
index adbc70b..64728f2 100644
--- a/src/tree_schema_free.c
+++ b/src/tree_schema_free.c
@@ -472,6 +472,14 @@
}
void
+lysc_extension_free(struct ly_ctx *ctx, struct lysc_ext *ext)
+{
+ FREE_STRING(ctx, ext->name);
+ FREE_STRING(ctx, ext->argument);
+ FREE_ARRAY(ctx, ext->exts, lysc_ext_instance_free);
+}
+
+void
lysc_iffeature_free(struct ly_ctx *UNUSED(ctx), struct lysc_iffeature *iff)
{
LY_ARRAY_FREE(iff->features);
@@ -822,6 +830,7 @@
FREE_ARRAY(ctx, module->rpcs, lysc_action_free);
FREE_ARRAY(ctx, module->notifs, lysc_notif_free);
+ FREE_ARRAY(ctx, module->extensions, lysc_extension_free);
FREE_ARRAY(ctx, module->exts, lysc_ext_instance_free);
free(module);
@@ -847,6 +856,7 @@
lysc_module_free(module->compiled, private_destructor);
FREE_ARRAY(module->ctx, module->off_features, lysc_feature_free);
+ FREE_ARRAY(module->ctx, module->off_extensions, lysc_extension_free);
lysp_module_free(module->parsed);
FREE_STRING(module->ctx, module->name);