This commit is contained in:
Olof hagsand 2019-03-25 11:26:57 +01:00
parent a0abf8436e
commit b9df1ed5b3
3 changed files with 5 additions and 2 deletions

View file

@ -111,7 +111,9 @@ backend_terminate(clicon_handle h)
stream_publish_exit();
clixon_plugin_exit(h);
/* Delete all backend plugin RPC callbacks */
rpc_callback_delete_all();
rpc_callback_delete_all();
/* Delete all backend plugin upgrade callbacks */
upgrade_callback_delete_all();
if (pidfile)
unlink(pidfile);

View file

@ -270,6 +270,8 @@ startup_extraxml(clicon_handle h,
goto fail;
retval = 1;
done:
if (xt)
xml_free(xt);
if (xmldb_delete(h, "tmp") != 0 && errno != ENOENT)
return -1;
return retval;