Skip to content

Commit 5ab2f8d

Browse files
authored
Update parser.c
1 parent d70a051 commit 5ab2f8d

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
@@ -1755,10 +1755,6 @@ lyp_parse_value(struct lys_type *type, const char **value_, struct lyxml_elem *x
17551755
LOGVAL(LYE_INMETA, LY_VLOG_LYD, contextnode, "<none>", itemname, *value_);
17561756
}
17571757
goto cleanup;
1758-
} else if (value == *value_) {
1759-
/* we have actually created the same expression (prefixes are the same as the module names)
1760-
* so we have just increased dictionary's refcount - fix it */
1761-
lydict_remove(type->parent->module->ctx, value);
17621758
}
17631759

17641760
/* the value has no prefix (default namespace), but the element's namespace has a prefix, find default namespace */

0 commit comments

Comments
 (0)