schema compile CHANGE anydata and anyxml support
diff --git a/src/tree_schema_free.c b/src/tree_schema_free.c
index 28be01d..23e8e44 100644
--- a/src/tree_schema_free.c
+++ b/src/tree_schema_free.c
@@ -655,7 +655,12 @@
             lysc_node_free(ctx, child);
         }
     }
+}
 
+static void
+lysc_node_anydata_free(struct ly_ctx *ctx, struct lysc_node_anydata *node)
+{
+    FREE_ARRAY(ctx, node->musts, lysc_must_free);
 }
 
 void
@@ -684,6 +689,10 @@
     case LYS_CASE:
         /* nothing specific */
         break;
+    case LYS_ANYDATA:
+    case LYS_ANYXML:
+        lysc_node_anydata_free(ctx, (struct lysc_node_anydata*)node);
+        break;
     default:
         LOGINT(ctx);
     }