schema CHANGE remove private_destructor parameter from ly_ctx_destroy()
The mechanism was not reliable and not used often. libyang provide
function to traverse the schema and free the set data manually or the
caller can maintain some information to free the set data directly.
This commit changes API.
diff --git a/tools/re/main.c b/tools/re/main.c
index 701b0a1..9bc5cdf 100644
--- a/tools/re/main.c
+++ b/tools/re/main.c
@@ -294,7 +294,7 @@
}
cleanup:
- ly_ctx_destroy(ctx, NULL);
+ ly_ctx_destroy(ctx);
for (i = 0; i < patterns_count; i++) {
free(patterns[i]);
}