commit | dbc15266b2860bcb4e08d6dede1dd4fd307dbe41 | [log] [tgz] |
---|---|---|
author | Radek Krejci <rkrejci@cesnet.cz> | Thu Jun 16 14:58:29 2016 +0200 |
committer | Radek Krejci <rkrejci@cesnet.cz> | Thu Jun 16 14:58:29 2016 +0200 |
tree | 72545054836e6969d3a87f3de634013a97cd75ff | |
parent | 62ea46b5f58c9ee01734b2007e5d72b4c19ce75a [diff] [blame] |
yin parser BUGFIX better handling of unresolved augments when freeing schema structure
diff --git a/src/tree_schema.c b/src/tree_schema.c index c66c3b8..3571538 100644 --- a/src/tree_schema.c +++ b/src/tree_schema.c
@@ -3146,7 +3146,10 @@ /* remove applied augments */ for (i = 0; i < module->augment_size; ++i) { - assert(module->augment[i].target); + if (!module->augment[i].target) { + /* skip not resolved augments */ + continue; + } elem = module->augment[i].child; if (elem) {