ext instance REFACTOR generic ext instance parsing

Stored in a format-independent format without
the need to update its name after compilation.
diff --git a/src/tree_schema_free.c b/src/tree_schema_free.c
index 626c2d4..071de57 100644
--- a/src/tree_schema_free.c
+++ b/src/tree_schema_free.c
@@ -21,6 +21,7 @@
 #include "plugins_types.h"
 #include "tree.h"
 #include "tree_data.h"
+#include "tree_data_internal.h"
 #include "tree_schema.h"
 #include "tree_schema_internal.h"
 #include "xml.h"
@@ -37,6 +38,7 @@
 
     lydict_remove(ctx, stmt->stmt);
     lydict_remove(ctx, stmt->arg);
+    ly_free_prefix_data(stmt->format, stmt->prefix_data);
 
     LY_LIST_FOR_SAFE(stmt->child, next, child) {
         lysp_stmt_free(ctx, child);
@@ -52,6 +54,7 @@
 
     lydict_remove(ctx, ext->name);
     lydict_remove(ctx, ext->argument);
+    ly_free_prefix_data(ext->format, ext->prefix_data);
 
     LY_LIST_FOR_SAFE(ext->child, next, stmt) {
         lysp_stmt_free(ctx, stmt);