commit | ebc50573c21e0eb78ecdfbd7ddea22d94d76c0ba | [log] [tgz] |
---|---|---|
author | fredgan <ganshaolong@vip.qq.com> | Thu Oct 31 15:39:23 2019 +0800 |
committer | Radek Krejci <rkrejci@cesnet.cz> | Fri Nov 01 15:28:12 2019 +0100 |
tree | 0aa3ee97d2ac5cbeec216c777b0ca893e4b54e80 | |
parent | 78f0682bbefb4951219d97fefdd12d8e5ccabf37 [diff] [blame] |
tree schema BUGFIX unknown extension instance free coredump
diff --git a/src/tree_schema_free.c b/src/tree_schema_free.c index 790b89f..2471de0 100644 --- a/src/tree_schema_free.c +++ b/src/tree_schema_free.c
@@ -467,7 +467,7 @@ void lysc_ext_instance_free(struct ly_ctx *ctx, struct lysc_ext_instance *ext) { - if (ext->def->plugin && ext->def->plugin->free) { + if (ext->def && ext->def->plugin && ext->def->plugin->free) { ext->def->plugin->free(ctx, ext); } FREE_STRING(ctx, ext->argument);