commit | 3e3affebb4e5f05e13bd90d84518947d7153f6bd | [log] [tgz] |
---|---|---|
author | Radek Krejci <rkrejci@cesnet.cz> | Thu Jul 09 15:38:40 2015 +0200 |
committer | Radek Krejci <rkrejci@cesnet.cz> | Thu Jul 09 15:38:40 2015 +0200 |
tree | 1a56d3d0fb7491d4c4bc4badd5a4e9ec8b431023 | |
parent | ac781923ec86ba3a0f3e24683db37dd6263e7228 [diff] [blame] |
data parser FEATURE support bits type for leafs/leaf-lists
diff --git a/src/tree.c b/src/tree.c index 13e08b1..f0cd6d6 100644 --- a/src/tree.c +++ b/src/tree.c
@@ -1747,6 +1747,11 @@ case LY_TYPE_STRING: lydict_remove(node->schema->module->ctx, ((struct lyd_node_leaf *)node)->value.string); break; + case LY_TYPE_BITS: + if (((struct lyd_node_leaf *)node)->value.bit) { + free(((struct lyd_node_leaf *)node)->value.bit); + } + break; default: /* TODO */ break;