- 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
This commit is contained in:
Olof hagsand 2021-04-13 16:23:20 +02:00
parent c43e216d67
commit 1af3a7bcfe

View file

@ -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 /* If we found an obsolete yang module, we need to make a clone yspec with the
* exactly the yang modules found * exactly the yang modules found
* Same ymodules are inserted into yspec1, ie pointers only
*/ */
if (needclone && xmodfile){ if (needclone && xmodfile){
if ((yspec1 = yspec_new()) == NULL) if ((yspec1 = yspec_new()) == NULL)
@ -602,9 +603,8 @@ xmldb_readfile(clicon_handle h,
} }
retval = 1; retval = 1;
done: done:
if (yspec1){ if (yspec1)
ys_free1(yspec1, 1); // XXX free childvec ys_free1(yspec1, 1);
}
if (xmodfile) if (xmodfile)
xml_free(xmodfile); xml_free(xmodfile);
if (msdiff) if (msdiff)