handle null
This commit is contained in:
parent
10d45bcee3
commit
9d64ddd305
2 changed files with 2 additions and 2 deletions
|
|
@ -294,7 +294,7 @@ netconf_terminate(clicon_handle h)
|
||||||
cxobj *x;
|
cxobj *x;
|
||||||
|
|
||||||
clixon_plugin_exit(h);
|
clixon_plugin_exit(h);
|
||||||
rpc_callback_delete_all();
|
rpc_callback_delete_all(h);
|
||||||
clicon_rpc_close_session(h);
|
clicon_rpc_close_session(h);
|
||||||
if ((yspec = clicon_dbspec_yang(h)) != NULL)
|
if ((yspec = clicon_dbspec_yang(h)) != NULL)
|
||||||
yspec_free(yspec);
|
yspec_free(yspec);
|
||||||
|
|
|
||||||
|
|
@ -486,7 +486,7 @@ restconf_terminate(clicon_handle h)
|
||||||
if ((fs = clicon_socket_get(h)) != -1)
|
if ((fs = clicon_socket_get(h)) != -1)
|
||||||
close(fs);
|
close(fs);
|
||||||
clixon_plugin_exit(h);
|
clixon_plugin_exit(h);
|
||||||
rpc_callback_delete_all();
|
rpc_callback_delete_all(h);
|
||||||
clicon_rpc_close_session(h);
|
clicon_rpc_close_session(h);
|
||||||
if ((yspec = clicon_dbspec_yang(h)) != NULL)
|
if ((yspec = clicon_dbspec_yang(h)) != NULL)
|
||||||
yspec_free(yspec);
|
yspec_free(yspec);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue