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