memerror in uid-get. reinsert save config yang spec (removed for wrong reasons previously causing memleaks)
This commit is contained in:
parent
69b27f3280
commit
c4954f5c43
9 changed files with 83 additions and 15 deletions
|
|
@ -605,6 +605,8 @@ restconf_terminate(clicon_handle h)
|
|||
clicon_rpc_close_session(h);
|
||||
if ((yspec = clicon_dbspec_yang(h)) != NULL)
|
||||
yspec_free(yspec);
|
||||
if ((yspec = clicon_config_yang(h)) != NULL)
|
||||
yspec_free(yspec);
|
||||
if ((nsctx = clicon_nsctx_global_get(h)) != NULL)
|
||||
cvec_free(nsctx);
|
||||
if ((x = clicon_conf_xml(h)) != NULL)
|
||||
|
|
|
|||
|
|
@ -642,12 +642,15 @@ main(int argc,
|
|||
goto done;
|
||||
}
|
||||
|
||||
/* Create configure yang-spec */
|
||||
/* Create configure yang-spec note different from dbspec holding application specs) */
|
||||
if ((yspecfg = yspec_new()) == NULL)
|
||||
goto done;
|
||||
/* Find and read configfile */
|
||||
if (clicon_options_main(h, yspecfg) < 0)
|
||||
goto done;
|
||||
if (clicon_config_yang_set(h, yspecfg) < 0)
|
||||
goto done;
|
||||
|
||||
stream_path = clicon_option_str(h, "CLICON_STREAM_PATH");
|
||||
/* Now rest of options, some overwrite option file */
|
||||
optind = 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue