schema printers FEATURE print compiled schema as YANG (LYS_OUT_YANG_COMPILED)
diff --git a/src/tree_schema_free.c b/src/tree_schema_free.c
index 1c94ae7..9e5563c 100644
--- a/src/tree_schema_free.c
+++ b/src/tree_schema_free.c
@@ -547,6 +547,7 @@
}
pcre_free((*pattern)->expr);
pcre_free_study((*pattern)->expr_extra);
+ FREE_STRING(ctx, (*pattern)->orig);
FREE_STRING(ctx, (*pattern)->eapptag);
FREE_STRING(ctx, (*pattern)->emsg);
FREE_STRING(ctx, (*pattern)->dsc);
@@ -556,7 +557,7 @@
}
static void
-lysc_enum_item_free(struct ly_ctx *ctx, struct lysc_type_enum_item *item)
+lysc_enum_item_free(struct ly_ctx *ctx, struct lysc_type_bitenum_item *item)
{
FREE_STRING(ctx, item->name);
FREE_STRING(ctx, item->dsc);
@@ -581,7 +582,7 @@
FREE_MEMBER(ctx, ((struct lysc_type_bin*)type)->length, lysc_range_free);
break;
case LY_TYPE_BITS:
- FREE_ARRAY(ctx, (struct lysc_type_enum_item*)((struct lysc_type_bits*)type)->bits, lysc_enum_item_free);
+ FREE_ARRAY(ctx, (struct lysc_type_bitenum_item*)((struct lysc_type_bits*)type)->bits, lysc_enum_item_free);
break;
case LY_TYPE_DEC64:
FREE_MEMBER(ctx, ((struct lysc_type_dec*)type)->range, lysc_range_free);