tree schema CHANGE plugin record in parsed extensions
diff --git a/tests/utests/schema/test_yang.c b/tests/utests/schema/test_yang.c
index bb30a92..7f6ef62 100644
--- a/tests/utests/schema/test_yang.c
+++ b/tests/utests/schema/test_yang.c
@@ -105,6 +105,7 @@
     LOG_LOCBACK(0, 0, 0, 1);
 
     ly_set_free(YCTX->parsed_mods, NULL);
+    ly_set_erase(&YCTX->ext_inst, NULL);
     free(YCTX);
     YCTX = NULL;