Skip to content

Commit

Permalink
mem-leak
Browse files Browse the repository at this point in the history
  • Loading branch information
olofhagsand committed Mar 25, 2019
1 parent a0abf84 commit b9df1ed
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion apps/backend/backend_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 2 additions & 0 deletions apps/backend/backend_startup.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
1 change: 0 additions & 1 deletion test/test_order.sh
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@ cat <<EOF > $cfg
<CLICON_SOCK>/usr/local/var/$APPNAME/$APPNAME.sock</CLICON_SOCK>
<CLICON_BACKEND_DIR>/usr/local/lib/example/backend</CLICON_BACKEND_DIR>
<CLICON_BACKEND_PIDFILE>/usr/local/var/$APPNAME/$APPNAME.pidfile</CLICON_BACKEND_PIDFILE>
<CLICON_CLI_GENMODEL_COMPLETION>1</CLICON_CLI_GENMODEL_COMPLETION>
<CLICON_XMLDB_DIR>$dbdir</CLICON_XMLDB_DIR>
<CLICON_XMLDB_PLUGIN>/usr/local/lib/xmldb/text.so</CLICON_XMLDB_PLUGIN>
</clixon-config>
Expand Down

0 comments on commit b9df1ed

Please sign in to comment.