Fixes for close and cleanup of sessions, dcb, router sessions etc.
Fix memory leak in config Fix for debug command execution without second argument
This commit is contained in:
@ -170,10 +170,6 @@ closeSession(ROUTER *instance, void *router_session)
|
||||
CLI_INSTANCE *inst = (CLI_INSTANCE *)instance;
|
||||
CLI_SESSION *session = (CLI_SESSION *)router_session;
|
||||
|
||||
/*
|
||||
* Close the connection to the backend
|
||||
*/
|
||||
session->session->client->func.close(session->session->client);
|
||||
|
||||
spinlock_acquire(&inst->lock);
|
||||
if (inst->sessions == session)
|
||||
|
||||
@ -180,7 +180,7 @@ char *saveptr, *delim = " \t\r\n";
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
else
|
||||
else if (argc >= 0)
|
||||
{
|
||||
for (i = 0; cmds[i].cmd; i++)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user