Skip to content

Commit d70a051

Browse files
authored
Update parser.c
1 parent 3fac2fc commit d70a051

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/parser.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1781,10 +1781,6 @@ lyp_parse_value(struct lys_type *type, const char **value_, struct lyxml_elem *x
17811781
value = lydict_insert(type->parent->module->ctx, *value_, 0);
17821782
/* erase error information */
17831783
ly_err_clean(ly_parser_data.ctx, 1);
1784-
} else if (value == *value_) {
1785-
/* we have actually created the same expression (prefixes are the same as the module names)
1786-
* so we have just increased dictionary's refcount - fix it */
1787-
lydict_remove(type->parent->module->ctx, value);
17881784
}
17891785
/* turn logging back on */
17901786
if (!hidden) {

0 commit comments

Comments
 (0)