yang load add test to not parse files if not already loaded

This commit is contained in:
Olof hagsand 2023-02-21 12:02:40 +01:00
parent 411a67f9d6
commit 48a7eac096
4 changed files with 36 additions and 10 deletions

View file

@ -665,7 +665,7 @@ ys_free1(yang_stmt *ys,
* Freed here once.
*/
if (yang_keyword_get(ys) == Y_UNKNOWN &&
strcmp(yang_argument_get(ys), "yangmnt:mount-point")==0){
strcmp(yang_argument_get(ys), "yangmnt:mount-point") == 0){
xml_yang_mount_freeall(ys->ys_cvec);
}
cvec_free(ys->ys_cvec);