Refactoring of yang schema mount code

This commit is contained in:
Olof hagsand 2024-06-01 11:27:03 +02:00
parent 80d03fb5b0
commit 3579d98243
3 changed files with 259 additions and 130 deletions

View file

@ -728,7 +728,7 @@ ys_free1(yang_stmt *ys,
* Freed here once.
*/
if (yang_flag_get(ys, YANG_FLAG_MOUNTPOINT))
yang_mount_freeall(ys->ys_cvec);
yang_mount_freeall(ys);
cvec_free(ys->ys_cvec);
ys->ys_cvec = NULL;
}