schema compile CHANGE support union type and inherit default and units values
diff --git a/src/tree_schema_free.c b/src/tree_schema_free.c
index 3fc0065..76edf01 100644
--- a/src/tree_schema_free.c
+++ b/src/tree_schema_free.c
@@ -149,7 +149,7 @@
FREE_ARRAY(ctx, item->exts, lysp_ext_instance_free);
}
-static void lysc_type_free(struct ly_ctx *ctx, struct lysc_type *type);
+void lysc_type_free(struct ly_ctx *ctx, struct lysc_type *type);
static void
lysp_type_free(struct ly_ctx *ctx, struct lysp_type *type)
{
@@ -532,13 +532,12 @@
FREE_ARRAY(ctx, item->exts, lysc_ext_instance_free);
}
-static void lysc_type_free(struct ly_ctx *ctx, struct lysc_type *type);
static void
lysc_type2_free(struct ly_ctx *ctx, struct lysc_type **type)
{
lysc_type_free(ctx, *type);
}
-static void
+void
lysc_type_free(struct ly_ctx *ctx, struct lysc_type *type)
{
if (--type->refcount) {
@@ -592,7 +591,7 @@
free(type);
}
-void
+static void
lysc_node_container_free(struct ly_ctx *ctx, struct lysc_node_container *node)
{
struct lysc_node *child, *child_next;