commit | 539c4a624e10a0b0cb8411d4b7ebedebfb6ffaca | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Tue Nov 03 17:21:34 2020 +0100 |
committer | Radek Krejci <rkrejci@cesnet.cz> | Wed Nov 04 08:51:50 2020 +0100 |
tree | 718cc3c3ec07b8131e68cdae6b70542e5bc8b9c9 | |
parent | 2336cf556c209e07aeee28618595a1d531160517 [diff] |
schema free MAINTENANCE safety check Required by coverity.
diff --git a/src/tree_schema_free.c b/src/tree_schema_free.c index 7597445..4026c7f 100644 --- a/src/tree_schema_free.c +++ b/src/tree_schema_free.c
@@ -810,6 +810,7 @@ /* unlinking the last node */ if (node->parent) { iter = (struct lysc_node *)lysc_node_children(node->parent, node->flags & LYS_CONFIG_MASK); + LY_CHECK_ERR_RET(!iter, LOGINT(ctx), ); } else { iter = node->module->compiled->data; }