From 1af3a7bcfee6f08e7ccbbc3a42c3b8f6791a469a Mon Sep 17 00:00:00 2001 From: Olof hagsand Date: Tue, 13 Apr 2021 16:23:20 +0200 Subject: [PATCH] - Restconf bind: continue with other sockets if bind fails, print address on log - Multi-yang: Look in CLICON_YANG_MAIN_DIR, not only CLICON_MAIN_DIRs for old yangs - Backend -q quit option enhanced for multi-yang case --- lib/src/clixon_datastore_read.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/src/clixon_datastore_read.c b/lib/src/clixon_datastore_read.c index 620480d2..7f57c144 100644 --- a/lib/src/clixon_datastore_read.c +++ b/lib/src/clixon_datastore_read.c @@ -563,6 +563,7 @@ xmldb_readfile(clicon_handle h, } /* If we found an obsolete yang module, we need to make a clone yspec with the * exactly the yang modules found + * Same ymodules are inserted into yspec1, ie pointers only */ if (needclone && xmodfile){ if ((yspec1 = yspec_new()) == NULL) @@ -602,9 +603,8 @@ xmldb_readfile(clicon_handle h, } retval = 1; done: - if (yspec1){ - ys_free1(yspec1, 1); // XXX free childvec - } + if (yspec1) + ys_free1(yspec1, 1); if (xmodfile) xml_free(xmodfile); if (msdiff)