diff options
Diffstat (limited to 'lib/yang.c')
-rw-r--r-- | lib/yang.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/yang.c b/lib/yang.c index 2860108d6..5b177f7fb 100644 --- a/lib/yang.c +++ b/lib/yang.c @@ -1143,8 +1143,7 @@ LY_ERR yang_lyd_trim_xpath(struct lyd_node **root, const char *xpath) } darr_free(remove); - if (set) - ly_set_free(set, NULL); + ly_set_free(set, NULL); return LY_SUCCESS; #endif |