Fix same -V version string

Restconf exit segv
This commit is contained in:
Olof hagsand 2024-02-17 22:04:21 +01:00
parent 6ff1588397
commit 3b0b734de1
11 changed files with 11 additions and 10 deletions

View file

@ -376,9 +376,9 @@ restconf_terminate(clixon_handle h)
if ((x = clicon_conf_xml(h)) != NULL)
xml_free(x);
xpath_optimize_exit();
restconf_handle_exit(h);
clixon_err_exit();
clixon_debug(CLIXON_DBG_RESTCONF, "pid:%u done", getpid());
restconf_handle_exit(h);
clixon_log_exit(); /* Must be after last clixon_debug */
return 0;
}

View file

@ -345,7 +345,7 @@ main(int argc,
usage(h, argv[0]);
break;
case 'V':
cligen_output(stdout, "Clixon version %s\n", CLIXON_VERSION_STRING);
cligen_output(stdout, "Clixon version: %s\n", CLIXON_VERSION_STRING);
print_version++; /* plugins may also print versions w ca-version callback */
break;
case 'D' : { /* debug */

View file

@ -1168,7 +1168,7 @@ main(int argc,
usage(h, argv0);
break;
case 'V': /* version */
cligen_output(stdout, "Clixon version %s\n", CLIXON_VERSION_STRING);
cligen_output(stdout, "Clixon version: %s\n", CLIXON_VERSION_STRING);
print_version++; /* plugins may also print versions w ca-version callback */
break;
case 'D' : { /* debug. Note this overrides any setting in the config */