handle null

This commit is contained in:
Olof Hagsand 2019-03-21 20:51:57 +01:00
parent 10d45bcee3
commit 9d64ddd305
2 changed files with 2 additions and 2 deletions

View file

@ -294,7 +294,7 @@ netconf_terminate(clicon_handle h)
cxobj *x;
clixon_plugin_exit(h);
rpc_callback_delete_all();
rpc_callback_delete_all(h);
clicon_rpc_close_session(h);
if ((yspec = clicon_dbspec_yang(h)) != NULL)
yspec_free(yspec);

View file

@ -486,7 +486,7 @@ restconf_terminate(clicon_handle h)
if ((fs = clicon_socket_get(h)) != -1)
close(fs);
clixon_plugin_exit(h);
rpc_callback_delete_all();
rpc_callback_delete_all(h);
clicon_rpc_close_session(h);
if ((yspec = clicon_dbspec_yang(h)) != NULL)
yspec_free(yspec);