Removed free(router_session) from closeSession. Router session is free in session.c:session_free.
This commit is contained in:
@ -193,13 +193,10 @@ CLI_SESSION *session = (CLI_SESSION *)router_session;
|
|||||||
ptr->next = session->next;
|
ptr->next = session->next;
|
||||||
}
|
}
|
||||||
spinlock_release(&inst->lock);
|
spinlock_release(&inst->lock);
|
||||||
|
/**
|
||||||
/*
|
* Router session is freed in session.c:session_close, when session who
|
||||||
* We are no longer in the linked list, free
|
* owns it, is freed.
|
||||||
* all the memory and other resources associated
|
|
||||||
* to the client session.
|
|
||||||
*/
|
*/
|
||||||
free(session);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user